File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ Cluster Environments
122122
123123 ClusterEnvironment
124124 LightningEnvironment
125+ LSFEnvironment
125126 TorchElasticEnvironment
126127 KubeflowEnvironment
127128 SLURMEnvironment
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments