Skip to content

Commit e830627

Browse files
authored
Merge branch 'master' into refactor/remove-check-ckpt-callback
2 parents d613729 + 7d1f4ce commit e830627

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

docs/source/api_references.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Cluster Environments
122122

123123
ClusterEnvironment
124124
LightningEnvironment
125+
LSFEnvironment
125126
TorchElasticEnvironment
126127
KubeflowEnvironment
127128
SLURMEnvironment

pytorch_lightning/loops/epoch/training_epoch_loop.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ def on_run_end(self) -> List[List[STEP_OUTPUT]]:
221221
self.trainer.call_hook('on_epoch_end')
222222
self.trainer.logger_connector.on_epoch_end()
223223

224+
self.update_lr_schedulers('epoch', update_plateau_schedulers=True)
225+
224226
epoch_output = self._epoch_output
225227
# free memory
226228
self._epoch_output = None

pytorch_lightning/loops/fit_loop.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,6 @@ def advance(self) -> None:
227227
self.trainer.logger_connector.update_train_epoch_metrics()
228228
self.global_step += 1
229229

230-
def on_advance_end(self) -> None:
231-
"""Updates the LR schedulers and does some internal bookkeeping"""
232-
if self.epoch_loop.batches_seen == 0:
233-
return
234-
235-
self.epoch_loop.update_lr_schedulers('epoch', update_plateau_schedulers=True)
236-
237230
def on_run_end(self) -> None:
238231
"""Calls the ``on_train_end`` hook"""
239232
# NOTE: the iteration_count/current_epoch is already incremented

0 commit comments

Comments
 (0)