Skip to content

Commit

Permalink
reset progress for restart
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Aug 10, 2021
1 parent 3096ab8 commit f69dbc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pytorch_lightning/loops/epoch/training_epoch_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ def on_run_end(self) -> List[List[STEP_OUTPUT]]:

self.update_lr_schedulers("epoch", update_plateau_schedulers=True)

self.batch_progress.current.reset()
self.scheduler_progress.current.reset()
self.batch_loop.optim_progress.reset_on_epoch()

epoch_output = self._epoch_output
# free memory
self._epoch_output = None
Expand Down

0 comments on commit f69dbc4

Please sign in to comment.