Skip to content

Change get_lr() call to get_last_lr() as per warning #1099

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

Merged
merged 3 commits into from
Apr 9, 2021

Conversation

natke
Copy link
Contributor

@natke natke commented Jul 31, 2020

This warning is given if you run the tutorial as is:

torch/optim/lr_scheduler.py:351: UserWarning: To get the last learning rate computed by the scheduler, please use get_last_lr()`

I changed the code as per the warning and the model trains successfully without warnings.

@netlify
Copy link

netlify bot commented Jul 31, 2020

Deploy preview for pytorch-tutorials-preview ready!

Built with commit f0fa4fc

https://deploy-preview-1099--pytorch-tutorials-preview.netlify.app

Base automatically changed from master to main February 16, 2021 19:33
Base automatically changed from main to master February 16, 2021 19:37
@holly1238 holly1238 merged commit 5080235 into pytorch:master Apr 9, 2021
rodrigo-techera pushed a commit to Experience-Monks/tutorials that referenced this pull request Nov 29, 2021
Co-authored-by: holly1238 <77758406+holly1238@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants