-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type error:remove_duplicate #256
Comments
I'm also getting the same error, can anyone please help? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: