-
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
Add __len__
method to IndexBatchSamplerWrapper
#7681
Add __len__
method to IndexBatchSamplerWrapper
#7681
Conversation
Hello @kaushikb11! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-05-26 15:35:05 UTC |
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #7681 +/- ##
=======================================
- Coverage 93% 88% -5%
=======================================
Files 199 199
Lines 12960 12962 +2
=======================================
- Hits 11990 11373 -617
- Misses 970 1589 +619 |
__len__
method to IndexBatchSampler__len__
method to IndexBatchSamplerWrapper
tests/models/test_tpu.py
Outdated
|
||
@RunIf(tpu=True) | ||
@pl_multi_process_test | ||
def test_predict_tpu_multi_cores(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.
I think an unit test would be better suited for this PR
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.
What do you have in mind? Just check the len
attribute for IndexBatchSamplerWrapper
?
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.
Yeah, simple and effective 😜
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.
Done!
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.
LGMT ! Just need to address comments
What does this PR do?
Fixes #7664
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
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 🙃