We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed7b831 commit 7e0330bCopy full SHA for 7e0330b
trainer/utils_trainer.py
@@ -78,7 +78,7 @@ def save_checkpoint(self, tag):
78
logger.warning('Saving checkpoint...')
79
80
resume_epoch_idx = self.train_params['current_epoch_idx']
81
- resume_batch_idx = self.train_params['current_epoch_idx'] + 1
+ resume_batch_idx = self.train_params['current_batch_idx'] + 1
82
83
if resume_batch_idx == self.train_params['updates_per_epoch']:
84
self.train_params['start_batch_idx'] = 0
0 commit comments