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

pytorch warning about misordered optimize and lr schedule #3

Open
jlquinn opened this issue Jan 27, 2023 · 0 comments
Open

pytorch warning about misordered optimize and lr schedule #3

jlquinn opened this issue Jan 27, 2023 · 0 comments

Comments

@jlquinn
Copy link

jlquinn commented Jan 27, 2023

/u/jlquinn/jlquinn-mt/gaama/conda.x86/envs/de-sbd/lib/python3.7/site-packages/torch/optim/lr_scheduler.py:143: UserWarning: Detected call of lr_scheduler.step()beforeoptimizer.step(). In PyTorch 1.1.0 and later, you should call them in the opposite order: optimizer.step()beforelr_scheduler.step(). Failure to do this will result in PyTorch skipping the first value of the learning rate schedule. See more details at https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate "https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate", UserWarning)

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

1 participant