-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Deprecated verbose parameter in LR schedulers #111302
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
Deprecated verbose parameter in LR schedulers #111302
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/111302
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 32cc192 with merge base 2a271a3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
eeecaa2 to
3125239
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay in review. Looks good!
|
@pytorchbot merge -r |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
3125239 to
32cc192
Compare
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Fixes pytorch#100847 This PR follows the comment in pytorch#100847 (comment) by deprecating the `verbose` parameter and removing the print statements. Removing the print statements is technically BC breaking, so I would be okay with putting them back in. To be less annoying, this PR raises a warning only when `verbose` is explicitly passed in. Pull Request resolved: pytorch#111302 Approved by: https://github.com/albanD
BC Breaking
As of this commit, the
verboseparameter ofLRScheduleris deprecated and will no longer trigger print statements during execution. Based on the discussion in #100847, having one-off print statements/logging smattered throughout PyTorch is not a future we want to move towards. Instead, we would prefer a consolidated logging system (usually used for debugging). If you would like to print the learning rate during execution, please useget_last_lr().For example, instead of the following:
Please instead have something like:
Context
Fixes #100847
This PR follows the comment in #100847 (comment) by deprecating the
verboseparameter and removing the print statements. Removing the print statements is technically BC breaking, so I would be okay with putting them back in.To be less annoying, this PR raises a warning only when
verboseis explicitly passed in.