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.
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
[Refactor] Improve loops API 1/n #8334
[Refactor] Improve loops API 1/n #8334
Changes from all commits
fe55d6e
4ee4a73
1291418
0e69bea
368e179
eb4475c
449ca62
cdf38f0
88bafaf
0981e94
7f8000f
4153b81
d6280e0
c499c24
3cb6df2
e8c12e9
df4b1ba
ee8d9b8
794522d
1136428
60e3f28
fbc7168
407a1ac
b229828
683e8ea
fecd58f
c0698be
2470a7b
19183a8
350abea
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
So why do we not want the
restarting
property anymore?And why did you leave it in the
__init__
?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.
This is still used in reset
self.restarting
. Check #8364.Adrian convinced me it was cleaner to make it manual.
self.restarting is automatically set to True by the Trainer when calling loop
load_state_dict
function.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.
Where exactly is that PR setting
restarting
on the loops?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.
Hey @carmocca, right there: https://github.com/PyTorchLightning/pytorch-lightning/pull/8334/files#diff-4076755145b42e55247c8c12a7a7961a91f4d28a3e962c80a98161163bfa3ec9R205.
Each loop is going to load its own checkpoint and be put in restarting mode.