Skip to content

Commit

Permalink
Remove redundant optimizer_idx reset on epoch (#9285)
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli authored Sep 2, 2021
1 parent e802f51 commit 530caef
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pytorch_lightning/trainer/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ def optimizer_steps(self) -> int:

def reset_on_epoch(self) -> None:
self.optimizer.reset_on_epoch()
self.optimizer_idx = 0

def load_state_dict(self, state_dict: dict) -> None:
self.optimizer.load_state_dict(state_dict["optimizer"])
Expand Down

0 comments on commit 530caef

Please sign in to comment.