-
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
Refactor LightningDataParallel #5670
Conversation
Codecov Report
@@ Coverage Diff @@
## release/1.2-dev #5670 +/- ##
===============================================
- Coverage 89% 89% -0%
===============================================
Files 169 173 +4
Lines 12415 12339 -76
===============================================
- Hits 11099 11015 -84
- Misses 1316 1324 +8 |
Hello @awaelchli! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-01-31 07:19:40 UTC |
2b0b465
to
795f9f0
Compare
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!
Thanks for the reviews. |
e3175b1
to
c66ae77
Compare
dc1350e
to
38f837b
Compare
@Borda Tests passing now, and I fixed the cyclic import error. This should be good now :) |
What does this PR do?
Fixes #5506
Follow-up to #5185
It is a bit hard to see what happens in the diff, because there are a lot of deletions.
I recommend to view diff in split view: Go to Files changed tab -> settings wheel -> change unifided to split
The refactor for DP here is basically analogeous to the refactor I did in #5185, with the addition that in DP we need to 1) convert Python scalars to tensors (to match functionality we had before) and 2) automatically unsqueeze 0-dim tensors
Todo: write tests
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 🙃