-
Notifications
You must be signed in to change notification settings - Fork 275
Conversation
Current test fails at ClassyVision/test/generic/optim_test_util.py Lines 80 to 85 in a62699b
because "momentum_buffer" raises KeyError I'm not pretty sure about this but I think it is due to no momentum in Adam, if so, then maybe the test itself needs modification |
@TH3CHARLie , thanks for submitting the PR! Yeah, I think you are correct, the test likely needs to be updated. |
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 for working on this TH3CHARLie!
You're right, Adam doesn't have a momentum buffer. Can you add a _check_momentum_buffer
to TestOptimizer
and return True
in the base class? TestAdamOptimizer can return False
instead and we can use this to determine if the check should happen or not.
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.
@vreis has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@mannatsingh has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@mannatsingh merged this pull request in 3d3fc1d. |
Summary: fixes facebookresearch/ClassyVision#288 Implement Adam optimizer, follow code style similar to SGD and RMSProp Pull Request resolved: facebookresearch/ClassyVision#301 Reviewed By: vreis Differential Revision: D18875000 Pulled By: mannatsingh fbshipit-source-id: 6fee087264a71bc826a00e89a5557c6894979d84
fixes #288
Summary:
Implement Adam optimizer, follow code style similar to SGD and RMSProp