-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Remove TrainingTypePlugin.on_save and Accelerator.on_save #9023
Conversation
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 for picking this up @four4fish !
@PyTorchLightning/core-contributors I'm not sure what the deprecation policies & versioning guarantees are for plugins & accelerators.
the docs say this:
The Plugin API is in beta and subject to change. For help setting up custom plugins/accelerators, please reach out to us at support@pytorchlightning.ai
https://pytorch-lightning.readthedocs.io/en/latest/extensions/plugins.html
Does this mean we can make the change in-place like this?
deprecation policy aside, this PR is what we'll end up doing.
Codecov Report
@@ Coverage Diff @@
## master #9023 +/- ##
=======================================
- Coverage 93% 89% -4%
=======================================
Files 175 175
Lines 14397 14391 -6
=======================================
- Hits 13340 12750 -590
- Misses 1057 1641 +584 |
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.
Discussing with @carmocca - the plugins & accelerator API is not stable enough yet for it to warrant full backward compatibility. the blast radius of this change is small given none of the framework's implementations are affected. Therefore, I'm in favor of directly removing this.
What does this PR do?
Fixes #8987
Double checked none of the plugins overridden on_save()
Does your PR introduce any breaking changes? If yes, please list them.
Removes
on_save
fromTrainingTypePlugin
andAccelerator
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃