-
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
Reset metrics before each task starts #9410
Conversation
197ae89
to
4c778d5
Compare
Codecov Report
@@ Coverage Diff @@
## master #9410 +/- ##
======================================
Coverage 93% 93%
======================================
Files 179 179
Lines 15307 15312 +5
======================================
+ Hits 14199 14204 +5
Misses 1108 1108 |
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.
LGMT !
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.
Given the description of the PR and looking at the implementation, I think it's better these calls go directly into the trainer.run implementation, not the loops.
good point, thanks :) |
pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py
Outdated
Show resolved
Hide resolved
pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py
Outdated
Show resolved
Hide resolved
pytorch_lightning/trainer/connectors/logger_connector/logger_connector.py
Show resolved
Hide resolved
due to recent fault-tolerant changes, I had to move it back to the trainer. Since |
Can you elaborate on what are the changes and why they force moving it? |
Training state is being restored before dispatch so adding these resets inside loops will reset the resultcollection set by resume_from_checkpoint. |
3c985bb
to
5a7d6a3
Compare
Co-authored-by: Rohit Gupta <[email protected]>
Co-authored-by: Rohit Gupta <[email protected]>
Co-authored-by: Rohit Gupta <[email protected]>
What does this PR do?
Fixes #7558
Does your PR introduce any breaking changes? If yes, please list them.
Before submitting
PR review
Anyone in the community is welcome to review the PR.
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 🙃