Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detected call of lr_scheduler.step() before optimizer.step() #18

Open
chang2yuan opened this issue Jun 23, 2021 · 1 comment
Open

Detected call of lr_scheduler.step() before optimizer.step() #18

chang2yuan opened this issue Jun 23, 2021 · 1 comment

Comments

@chang2yuan
Copy link

碰到上面这个问题,提示需要optimizer放在ls_scheduler前面:
“In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step() before lr_scheduler.step().“
请问是调整什么位置呢?

@heshuting555
Copy link
Owner

这个是warning呢,可以忽略的呢,不影响最终成绩。
可以按照提示,把lr_scheduler.step() 放在epoch的末尾。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants