-
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
Make unimplemented dataloader hooks raise NotImplementedError
#9161
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 working on this @Tshimanga !
Please update the PR title to be more descriptive of the actual change
NotImplementedError
Technically, all of the hooks are optional to implement, depending on which Trainer function is called. For instance, if you call |
Codecov Report
@@ Coverage Diff @@
## master #9161 +/- ##
=======================================
- Coverage 92% 88% -4%
=======================================
Files 176 176
Lines 14857 14858 +1
=======================================
- Hits 13703 13085 -618
- Misses 1154 1773 +619 |
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 !
@ananthsub @tchaton @awaelchli @carmocca |
it's not from your PR, pretty sure |
@awaelchli hmm, looks like another failure. maybe #9021 just needs to be merged first? |
@awaelchli hmm it looks like generally those tests do creep pretty close to the 45min upper limit though |
…lightning into feature/chore#8752
Latest version (v1.5.0) requires to override all dataloader methods: Lightning-AI/pytorch-lightning#9161 making pylint raise error in our test Close #186
Latest version (v1.5.0) requires to override all dataloader methods: Lightning-AI/pytorch-lightning#9161 making pylint raise error in our test Close #186
What does this PR do?
Fixes #8752
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? yes
Make sure you had fun coding 🙃
@ananthsub I added the
raise NotImplementedError
on the other dataloader hooks, but I'm still curious about that choice if you have a moment