-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Remove deprecate method and attirbute in LRScheduler
#147301
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/147301
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit b3e60f4 with merge base 3ca1a25 ( FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
I wonder if |
|
Thanks for following up on this--yes let's remove everything associated with this deprecation, including the verbose param |
LRScheduler.print_lrLRScheduler
|
Should remove pytorch/torch/optim/lr_scheduler.py Lines 208 to 255 in bd370c1
|
|
@janeyx99 Hi, please check changes when available, thanks! |
no this one is harder to remove |
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.
thanks!
|
@pytorchbot merge -r |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
f3a2951 to
b3e60f4
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 |
Merge failedReason: 3 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
|
Seems need help skip BC Lint check, thanks! @janeyx99 |
|
@pytorchbot merge |
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 |
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
* PyTorch 2.7 removed the deprecated argument entirely: pytorch/pytorch#147301
The verbose flag was deprecated in torch 2.2 and removed in 2.7. See: pytorch/pytorch#147301
Following #99270 suggestion, remove deprecate method
LRScheduler.print_lrBC-breaking note
LRScheduler.print_lr()along with theverbosekwarg to the LRScheduler constructor has been deprecated since release 2.2. Please useLRScheduler.get_last_lr()to access the learning rate instead.print_lrandverbosewere confusing, not properly documented and were little used, as described in #99270, so we deprecated them in 2.2. Now, we complete the deprecation by removing them completely. To access and print the learning rate of a LRScheduler:In 2.6.0
In 2.7.0