-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add the on_before_optimizer_step
hook
#8048
Add the on_before_optimizer_step
hook
#8048
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8048 +/- ##
=======================================
- Coverage 92% 88% -4%
=======================================
Files 214 214
Lines 13900 13910 +10
=======================================
- Hits 12814 12237 -577
- Misses 1086 1673 +587 |
Hi @carmocca, this is still a draft but I wanted to get your feedback. Question 1I tried putting so it looks like this:
while calling and putting it outside the Question 2Could you clear up for me what you meant by this quote (from the original issue)?
I would like to know whether I should modify the precision plugins in any way with regards to TODO:I will have to update the hook tests most likely since they're failing and also do a once over to check that the new hook is everywhere where it should be. |
This reverts commit 39c4a85.
on_before_optimizer_step
hook
…ter_backward_should_always_run
Hello @ddrevicky! Thanks for updating this PR.
Comment last updated at 2021-07-09 10:03:12 UTC |
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.
LGTM !
What does this PR do?
Adds
on_before_optimizer_step
hook which behaves ason_after_backward
did, i.e., it is called only once before optimizer step and after all backward passes and afteron_after_backward
co-author: @carmocca
Continues #8328
Fixes #7924
Before submitting
PR review