-
Notifications
You must be signed in to change notification settings - Fork 31
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
Lookahead has no attribute 'state' #3
Comments
I got same problem... |
@HJ-harry Do you use horovod? It happens when I use horovod. I solved the problem by changing the position of warpping. ex) |
I got a same error when saving the Lookahead optimizer. |
I just ran into this too. Any fixes? |
@oscardssmith optimizer.optimizer.state_dict() seems to solve the issue for me. But i still think, there should be a state for the entire optimizer as whole. |
When trying to save optimizer_state_dict,
I get an error saying >>Lookahead has no attribute 'state'
I thought this was due to not initializing parent class inside the class
Lookahead
and so I added the line
However, this still does not solve the issue. Other than saving, there seems no issue. Do you have any idea how to solve this issue?
The text was updated successfully, but these errors were encountered: