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
Something changed from 1.0.3 to 1.0.4: in 1.0.3 I was able to override optimizer_step in my LightningModule and everything worked fine. But in 1.0.4, when I override optimizer_step it causes training_step to be skipped.
Thanks, that seems to be working. If this is going to be the required way of handling it (unlike in previous releases) then I think it needs to be clearly pointed out in the documentation. Otherwise, hopefully it can be fixed before the next maintenance update.
yes, I think the docs are a bit old, I am updating them in the fix. Apart from that just making sure that passing optimizer_closure is the only issue here.
🐛 Bug
Something changed from
1.0.3
to1.0.4
: in1.0.3
I was able to overrideoptimizer_step
in my LightningModule and everything worked fine. But in1.0.4
, when I overrideoptimizer_step
it causestraining_step
to be skipped.Please reproduce using the BoringModel and post here
BoringModel replication
Expected behavior
Defining
optimizer_step
should not causetraining_step
to be skipped over. This is definitely a problem.The text was updated successfully, but these errors were encountered: