-
Notifications
You must be signed in to change notification settings - Fork 617
Implement LazyAdamOptimizer #11
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
Implement LazyAdamOptimizer #11
Conversation
c4a3b9f to
1922bbc
Compare
|
@seanpmorgan @armando-fandango Could you take a look? Thanks :) |
tensorflow_addons/optimizers/python/lazy_adam_optimizer_test.py
Outdated
Show resolved
Hide resolved
seanpmorgan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for the PR @facaiy. Generally looks good, few stylistic changes requested.
tensorflow_addons/optimizers/python/lazy_adam_optimizer_test.py
Outdated
Show resolved
Hide resolved
370b575 to
cfba7d3
Compare
|
Thank you, Sean. For v1 tests, I'd like to keep the same pace with keras.optimizer to remove them. I think I have addressed all your comments, could you take a look again? |
8c3821b to
06f8176
Compare
06f8176 to
76843b2
Compare
Implement LazyAdamOptimizer
Fix #4
The implementation are based on tensorflow/contrib/opt/python/training/lazy_adam_optimizer.py and tensorflow/python/keras/optimizer_v2/adam.py
The test codes are based on tensorflow/contrib/opt/python/training/lazy_adam_optimizer_test.py and tensorflow/python/keras/optimizer_v2/adamax_test.py
Note that RefVariable is not supported any more. They are modified to ensure that all tests pass in nightly-custom-op image.