-
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 deprecated model hooks #3980
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3980 +/- ##
=======================================
- Coverage 89% 87% -2%
=======================================
Files 216 216
Lines 15569 15557 -12
=======================================
- Hits 13870 13580 -290
- Misses 1699 1977 +278 |
@@ -40,15 +40,13 @@ Training loop | |||
^^^^^^^^^^^^^ | |||
|
|||
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_epoch_start` | |||
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_batch_start` |
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.
shall we add on_train_batch_start
?
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.
Good point, mind make it as suggestion here?
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.
Github shows Applying suggestions on deleted line is not supported.
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_train_batch_start`
- :meth:`~pytorch_lightning.core.lightning.LightningModule.tbptt_split_batch` | ||
- :meth:`~pytorch_lightning.core.lightning.LightningModule.training_step` | ||
- :meth:`~pytorch_lightning.core.lightning.LightningModule.training_step_end` (optional) | ||
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_before_zero_grad` | ||
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.backward` | ||
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_after_backward` | ||
- ``optimizer.step()`` | ||
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_batch_end` |
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.
here on_train_batch_end
too?
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.
- :meth:`~pytorch_lightning.core.hooks.ModelHooks.on_train_batch_end`
@Borda follow up on the next PR with adding those missing hooks
|
What does this PR do?
remove deprecated model hooks
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃