Skip to content
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

Open
ZiyingHuang opened this issue Sep 6, 2023 · 1 comment
Open

type error:remove_duplicate #256

ZiyingHuang opened this issue Sep 6, 2023 · 1 comment

Comments

@ZiyingHuang
Copy link

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?

@KrishnaVeer7712
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants