-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Deprecate on_before_accelerator_backend_setup
callback hook
#11655
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
Deprecate on_before_accelerator_backend_setup
callback hook
#11655
Conversation
@ananthsub this is part 2 of this PR. Does it look okay? |
@krishnakalyan3 currently this PR is only changing the changelog. It should be deprecating the hook, like in #10940 Please also update the title to be the same as #11559 |
on_before_accelerator_backend_setup
callback hook
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.
Requesting changes based on @daniellepintz 's feedback
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.
LGTM once comments are addressed.
The title and description of this PR don't match the contents - you seem to be removing the |
@daniellepintz You are right. Now, this PR only contains the change log. |
for more information, see https://pre-commit.ci
Thanks @rohitgr7 |
Codecov Report
@@ Coverage Diff @@
## master #11655 +/- ##
========================================
- Coverage 92% 88% -4%
========================================
Files 198 198
Lines 17310 17315 +5
========================================
- Hits 15846 15180 -666
- Misses 1464 2135 +671 |
@@ -264,8 +264,8 @@ def configure_optimizers(self): | |||
|
|||
|
|||
def test_on_before_accelerator_backend_setup(tmpdir): |
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.
the name of this test should be changed to test_setup_hook
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.
actually on second thought it looks like this test doesn't really belong in this file. Do people think we still need this test given it is similar to this one? https://github.com/PyTorchLightning/pytorch-lightning/blob/43a89eb132511f99441671ee0ba4d2b92ebbcbd7/tests/trainer/test_trainer.py#L1654-L1674
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.
Probably not, it's also covered by tests/models/test_hooks.py::test_trainer_model_hook_system_fit
What does this PR do?
Fixes #11559
Does your PR introduce any breaking changes? If yes, please list them.
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 🙃