Skip to content

Commit

Permalink
Remove if
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Dec 17, 2021
1 parent be1341a commit 942f0ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pytorch_lightning/loops/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,4 @@ def _load_from_state_dict(self, state_dict: Dict, prefix: str, metrics: Optional
v.reset(metrics=False)

self.on_load_checkpoint(state_dict[prefix + "state_dict"])

if _FaultTolerantMode.detect_current_mode().is_enabled:
self.restarting = True
self.restarting = True

0 comments on commit 942f0ec

Please sign in to comment.