Skip to content

Commit

Permalink
Merge pull request #1021 from chenyuwuxin/master
Browse files Browse the repository at this point in the history
FIX: fix issue #1015
  • Loading branch information
Ethan-TZ authored Oct 26, 2021
2 parents 186a9f9 + f3c8354 commit deb1f30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions recbole/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def resume_checkpoint(self, resume_file):
"""
resume_file = str(resume_file)
self.saved_model_file = resume_file
checkpoint = torch.load(resume_file)
self.start_epoch = checkpoint['epoch'] + 1
self.cur_step = checkpoint['cur_step']
Expand Down

0 comments on commit deb1f30

Please sign in to comment.