Skip to content

Commit

Permalink
add epoch to lr_scheduler.step() call
Browse files Browse the repository at this point in the history
fix issue victoresque#68 of victoresque/pytorch-template
  • Loading branch information
SunQpark committed Jun 12, 2020
1 parent d90f283 commit ce38fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srcs/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _train_epoch(self, epoch):
log.update(**{'val_'+k : v for k, v in val_log.items()})

if self.lr_scheduler is not None:
self.lr_scheduler.step()
self.lr_scheduler.step(epoch)
return log

def _valid_epoch(self, epoch):
Expand Down

0 comments on commit ce38fb6

Please sign in to comment.