-
Notifications
You must be signed in to change notification settings - Fork 413
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
Fix gather_all_tensors #220
Conversation
Hello @maximsch2! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-05-04 13:00:54 UTC |
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## master #220 +/- ##
==========================================
+ Coverage 96.76% 96.78% +0.02%
==========================================
Files 92 92
Lines 2965 2988 +23
==========================================
+ Hits 2869 2892 +23
Misses 96 96
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@ananthsub, I think it can be great to bring this over to |
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
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 !
@tchaton : @maximsch2 pointed out we should bring this to Lightning to replace the existing all_gather_tensors utility here: https://github.com/PyTorchLightning/pytorch-lightning/blob/597b309f2e3b0f5fb618f4326e8700df399917fb/pytorch_lightning/utilities/distributed.py#L86-L113 |
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
Co-authored-by: Nicki Skafte <[email protected]>
* fix gather_all_tensors * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * pep * shortcut for simple cases * add better test and fix gather * format * add changelog * address comments * pep8 Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: jirka <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit cb6899b)
Before submitting
What does this PR do?
gather_all_tensors doesn't work correctly when tensors are different shape, fix that
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 🙃