Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lightning/pytorch/loops/training_epoch_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def _update_learning_rates(self, interval: str, update_plateau_schedulers: bool)
if update_plateau_schedulers ^ config.reduce_on_plateau:
continue

current_idx = self.batch_idx if interval == "step" else trainer.current_epoch
current_idx = self.total_batch_idx if interval == "step" else trainer.current_epoch
current_idx += 1 # account for both batch and epoch starts from 0
# Take step if call to update_learning_rates matches the interval key and
# the current step modulo the schedulers frequency is zero
Expand Down
Loading