Allow log_momentum for adaptive optimizers#5333
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5333 +/- ##
======================================
- Coverage 93% 93% -0%
======================================
Files 134 134
Lines 9950 9951 +1
======================================
- Hits 9261 9255 -6
- Misses 689 696 +7 |
awaelchli
approved these changes
Jan 3, 2021
Contributor
awaelchli
left a comment
There was a problem hiding this comment.
an idea for the future: allow the user to pass in functions / lambdas for extracting the learning rate, momentum or whatever required by the monitor. This way we can support all optimizers in a generic way and for the known ones, we provide the default functions. :)
rohitgr7
commented
Jan 3, 2021
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
carmocca
reviewed
Jan 3, 2021
carmocca
reviewed
Jan 3, 2021
carmocca
reviewed
Jan 3, 2021
carmocca
reviewed
Jan 3, 2021
rohitgr7
commented
Jan 4, 2021
carmocca
reviewed
Jan 4, 2021
carmocca
approved these changes
Jan 4, 2021
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com> Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
rohitgr7
commented
Jan 4, 2021
Borda
pushed a commit
that referenced
this pull request
Jan 6, 2021
* fix * fix * chlog * no momentum warning * Apply suggestions from code review Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> * ref Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> (cherry picked from commit 371daea)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #5330
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃