Closed Mao-KU closed 3 years ago
You should ignore the warning because we need the closed form to use this library (pytorch_warmup).
This comment might be helpful: https://github.com/Tony-Y/pytorch_warmup/pull/1#issuecomment-735620983
I see. Thanks for the reply!
Hi Tony, I am using torch1.9 and
lr_scheduler.step(lr_scheduler.last_epoch + 1)
, but I got this UserWarning: UserWarning: The epoch parameter inscheduler.step()
was not necessary and is being deprecated where possible. Please usescheduler.step()
to step the scheduler. During the deprecation, if epoch is different from None, the closed form is used instead of the new chainable form, where available.Will this lead to some learning rate bugs?