-
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
Error on zero length dataloaders #1280
Error on zero length dataloaders #1280
Conversation
This looks nice :) could you add a test to make sure that the error is raised? |
Codecov Report
@@ Coverage Diff @@
## master #1280 +/- ##
=======================================
+ Coverage 92% 92% +<1%
=======================================
Files 62 62
Lines 3188 3190 +2
=======================================
+ Hits 2920 2922 +2
Misses 268 268 |
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.
Awesome - LGTM :)
This pull request is now in conflict... :( |
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 🚀
* error_on_zero_length * update CHANGELOG.md * added test * Update pytorch_lightning/trainer/data_loading.py Co-authored-by: Nicki Skafte <[email protected]> Co-authored-by: Jirka Borovec <[email protected]>
Before submitting
What does this PR do?
Fixes #1131.
Return a
ValueError
if user specified dataloaders has zero length (no batches). Current error returned are non-informative.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 🙃