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

Fix Yogi optimizer #288

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Fix Yogi optimizer #288

merged 1 commit into from
Jan 28, 2022

Conversation

wdphy16
Copy link
Contributor

@wdphy16 wdphy16 commented Jan 25, 2022

When I was implementing #279, I noticed that the Yogi optimizer was incorrectly implemented. We should not take the square of signed_sq in _update_moment, and the coefficient to update v is also different from that in _update_moment.

After the fix, I need to change the learning rate to pass the test.

Copy link
Collaborator

@hbq1 hbq1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great catch, thank you!

@hbq1
Copy link
Collaborator

hbq1 commented Jan 25, 2022

FYI We will only be able to merge this and other CLs after the ICML 2022 deadline (on this Friday). Sorry for the inconvenience!

@copybara-service copybara-service bot merged commit 78eb977 into google-deepmind:master Jan 28, 2022
@wdphy16 wdphy16 deleted the fix_yogi branch February 1, 2022 09:13
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

Successfully merging this pull request may close these issues.

None yet

2 participants