Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleve committed May 14, 2022
1 parent 7388e70 commit ddf3a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def dump_checkpoint(self, weights_only: bool = False) -> dict:
'global_step': training global step
'pytorch-lightning_version': The version of PyTorch Lightning that produced this checkpoint
'callbacks': "callback specific state"[] # if not weights_only
'loggers': "logger specific state"[] # if not weights_only
'loggers': "logger specific state"[] # if not weights_only
'optimizer_states': "PT optim's state_dict"[] # if not weights_only
'lr_schedulers': "PT sched's state_dict"[] # if not weights_only
'state_dict': Model's state_dict (e.g. network weights)
Expand Down
1 change: 1 addition & 0 deletions pytorch_lightning/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1713,6 +1713,7 @@ def _call_loggers_state_dict(self) -> Dict[str, dict]:
state_dict = logger.state_dict()
if state_dict:
logger_state_dicts[logger.state_key] = state_dict

return logger_state_dicts

def _call_loggers_load_state_dict(self, checkpoint: Dict[str, Any]) -> None:
Expand Down

0 comments on commit ddf3a3c

Please sign in to comment.