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 7e2f7e9 commit e295c9cCopy full SHA for e295c9c
pytorch_lightning/trainer/training_loop.py
@@ -494,6 +494,9 @@ def run_training_epoch(self):
494
if batch_output.signal == -1:
495
break
496
497
+ # update LR schedulers
498
+ self.update_lr_schedulers('step')
499
+
500
# hook
501
# TODO: add outputs to batches
502
self.on_train_batch_end(
@@ -523,8 +526,6 @@ def run_training_epoch(self):
523
526
# -----------------------------------------
524
527
self.save_loggers_on_train_batch_end()
525
528
- # update LR schedulers
- self.update_lr_schedulers('step')
529
self.trainer.checkpoint_connector.has_trained = True
530
531
self.total_batch_idx += 1
0 commit comments