Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8197 +/- ##
=======================================
- Coverage 93% 88% -5%
=======================================
Files 212 212
Lines 13679 13695 +16
=======================================
- Hits 12720 12052 -668
- Misses 959 1643 +684 |
carmocca
reviewed
Jun 29, 2021
awaelchli
reviewed
Jun 29, 2021
ananthsub
reviewed
Jun 29, 2021
Contributor
ananthsub
left a comment
There was a problem hiding this comment.
do you have examples of what types of state the loop needs to save/load?
Contributor
Namely progress (dataclasses) and results ( trainer
loops:
fit_loop:
epoch_loop:
batch_loop:
val_loop:
...
validate_loop:
...
test_loop:
...
------
and each loop has:
a_loop:
progress
results |
carmocca
reviewed
Jun 30, 2021
113c569 to
3d748cb
Compare
carmocca
approved these changes
Jun 30, 2021
ananthsub
reviewed
Jun 30, 2021
Contributor
ananthsub
left a comment
There was a problem hiding this comment.
could you describe how the trainer will resume the states? at what point is the loop's load_state_dict called?
also does what requirements does this impose on composition of loops?
ananthsub
reviewed
Jun 30, 2021
awaelchli
approved these changes
Jul 1, 2021
Borda
approved these changes
Jul 1, 2021
carmocca
reviewed
Jul 1, 2021
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?
This PR adds the templating logic for loops state. This would be used by Fault Tolerant Logic.
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 🙃