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
When setting self.automatic_optimization to False in a LightningModule, a LearningRateMonitor callback will not log the learning rate, even though lr_schedule.step() is called.
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 - the Lightning Team!
Bug description
When setting
self.automatic_optimization
toFalse
in aLightningModule
, aLearningRateMonitor
callback will not log the learning rate, even thoughlr_schedule.step()
is called.How to reproduce the bug
https://colab.research.google.com/drive/16wvrmKqGtVrOCd8Uo3K83WLeIATChFbF?usp=sharing
Error messages and logs
See colab
Environment
See colab
More info
It seems
trainer._logger_connector.should_update_logs
at https://github.com/Lightning-AI/lightning/blob/8266300b29e14d719945e153dcb18743c0449966/src/pytorch_lightning/callbacks/lr_monitor.py#L151 isFalse
, and therefore no logging takes place.cc @carmocca @nbcsm @guotuofeng
The text was updated successfully, but these errors were encountered: