We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6b17d commit c59ab40Copy full SHA for c59ab40
src/lightning/pytorch/loops/training_epoch_loop.py
@@ -190,8 +190,7 @@ def reset(self) -> None:
190
if (
191
self.restarting
192
and not self._should_accumulate()
193
- and self.restarted_on_train_batch_end
194
- or not self.restarted_on_last
+ and (self.restarted_on_train_batch_end or not self.restarted_on_last)
195
):
196
# batches_that_stepped is never set prior to saving a checkpoint, even when saving
197
# happens on_validation_end
0 commit comments