Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #160 from delira-dev/save_fix
Browse files Browse the repository at this point in the history
Fix Epoch during saving
  • Loading branch information
justusschock committed Jul 13, 2019
2 parents 722a536 + 3b7388b commit db58949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion delira/training/pytorch_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def save_state(self, file_name, epoch, **kwargs):
"""
if not (file_name.endswith(".pth") or file_name.endswith(".pt")):
file_name = file_name + ".pt"
save_checkpoint(file_name, self.module, self.optimizers,
save_checkpoint(file_name, self.module, self.optimizers, epoch,
**kwargs)

@staticmethod
Expand Down

0 comments on commit db58949

Please sign in to comment.