Skip to content

Commit

Permalink
Fix _call_loggers_load_state_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleve committed May 19, 2022
1 parent e14c8b3 commit 13258e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ def _call_loggers_load_state_dict(self, checkpoint: Dict[str, Any]) -> None:
return

for logger in self.loggers:
state = logger_states.get(logger.state_key, type(logger))
state = logger_states.get(logger.state_key)
if state:
state = deepcopy(state)
logger.load_state_dict(state)
Expand Down

0 comments on commit 13258e4

Please sign in to comment.