-
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
Call on_load_checkpoint before loading state_dict #4057
Conversation
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.
I think it makes sense, and it can be useful when the hook can change state dict before the weights are loaded.
|
Codecov Report
@@ Coverage Diff @@
## master #4057 +/- ##
========================================
- Coverage 92% 90% -2%
========================================
Files 105 111 +6
Lines 7815 9900 +2085
========================================
+ Hits 7194 8955 +1761
- Misses 621 945 +324 |
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?
Follow up #3996. This was missed in that PR.
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃