-
Notifications
You must be signed in to change notification settings - Fork 25.7k
fixed pyi file for ReduceLROnPlateau #113659
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/113659
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 4cfb2d4 with merge base 9b0f2f8 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "module: typing" |
|
@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 |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
|
Looks like this fix triggers
|
|
It seems that a bunch of the LRScheduler subclasses simply violate LSP.
For For |
|
Alternatively, one could set a default value like |
|
type: ignore as necessary, IMO |
|
Agreed with Ed for ReduceLROnPlateau, and yes for propagating epoch for the others. |
|
I added the type-ignore here and a put some educated guesses on how to pass epoch into a second pull request: #113675 |
|
@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 |
Fixes #63143
Issue reappeared due to subclassing not present in stub file.
cc @ezyang @malfet @xuzhao9 @gramster