Update trainer.py
This commit is contained in:
parent
5ba0a8fe4c
commit
98fcc17135
|
@ -612,6 +612,7 @@ class Trainer(TrainerIO):
|
|||
# run all epochs
|
||||
for epoch_nb in range(self.current_epoch, self.max_nb_epochs):
|
||||
# update the lr scheduler
|
||||
if self.lr_schedulers is not None:
|
||||
for lr_scheduler in self.lr_schedulers:
|
||||
lr_scheduler.step()
|
||||
|
||||
|
|
Loading…
Reference in New Issue