You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "D:\anaconda\envs\mechine_learning\Lib\site-packages\torch\nn\modules\module.py", line 2112, in named_parameters
gen = self._named_members(
^^^^^^^^^^^^^^^^^^^^
TypeError: Module._named_members() got an unexpected keyword argument 'remove_duplicate'
The code is as follow.
gen = self._named_members(
lambda module: module._parameters.items(),
prefix=prefix, recurse=recurse, remove_duplicate=remove_duplicate)
yield from gen
There is no solution that I search. Is it because I installed pytorch2.0? Who can help me please?
The text was updated successfully, but these errors were encountered:
File "D:\anaconda\envs\mechine_learning\Lib\site-packages\torch\nn\modules\module.py", line 2112, in named_parameters
gen = self._named_members(
^^^^^^^^^^^^^^^^^^^^
TypeError: Module._named_members() got an unexpected keyword argument 'remove_duplicate'
The code is as follow.
gen = self._named_members(
lambda module: module._parameters.items(),
prefix=prefix, recurse=recurse, remove_duplicate=remove_duplicate)
yield from gen
There is no solution that I search. Is it because I installed pytorch2.0? Who can help me please?
The text was updated successfully, but these errors were encountered: