Skip to content

Commit

Permalink
added state saving
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Apr 23, 2020
1 parent fa87d1d commit c60a885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/trainer/training_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def dump_checkpoint(self):

# restore native amp scaling
if self.use_amp and self.use_native_amp and 'native_amp_scaling_state' in checkpoint:
checkpoint['native_amp_scaling_state'] = self.scaler.state_dict
checkpoint['native_amp_scaling_state'] = self.scaler.state_dict()

if hasattr(model, "hparams"):
is_namespace = isinstance(model.hparams, Namespace)
Expand Down

0 comments on commit c60a885

Please sign in to comment.