You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically marked as stale because it hasn't had any recent activity. This issue will be closed in 7 days if no further activity occurs. Thank you for your contributions, Pytorch Lightning Team!
🐛 Bug
This is an unlikely case, but
UserWarning: Detected call of lr_scheduler.step() before optimizer.step()
gets raised in the following condition:To Reproduce
Running the script below with any values that satisfy
LIMIT_TRAIN_BATCHES<=FREQUENCY1
.Expected behavior
scheduler1.step()
should never be called in the above script.Environment
conda
,pip
, source):torch.__config__.show()
:Additional context
Found in #11755 where the following test case throws the warning:
https://github.com/PyTorchLightning/pytorch-lightning/blob/9e7bd9c72d0150940138e7ae8f272afcfe56cd01/tests/trainer/optimization/test_optimizers.py#L273-L282
If you think this is a critical issue, please assign this issue to me, and I'll prioritize this :)
cc @tchaton @rohitgr7
The text was updated successfully, but these errors were encountered: