-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[bugfix] Perform reduction for dict in training_step and DP #6324
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6324 +/- ##
========================================
- Coverage 93% 46% -47%
========================================
Files 160 160
Lines 11415 11304 -111
========================================
- Hits 10644 5247 -5397
- Misses 771 6057 +5286 |
Co-authored-by: Carlos Mocholí <[email protected]>
Co-authored-by: Kaushik B <[email protected]>
ab8a942 to
9b1e45f
Compare
…PyTorchLightning/pytorch-lightning into bugfix/6193_dp_dont_reduce_dict
|
Hello @tchaton! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-03-04 22:49:41 UTC |
| @RunIf(min_gpus=2) | ||
| def test_dp_training_step_dict(tmpdir): | ||
| """ | ||
| This test verify dp properly reduce dictionaries |
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.
This test does not do what it says. It just makes sure that nothing crashes, but there are no assertions that the behavior is correct.
I bet if we change mean to something else, this test will not fail.
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.
besides, nothing gets reduced here anyway because BoringModel uses batch size 1 for all dataloaders and so this never runs on more than 1 gpu
* fix * update * update * add changelog * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <[email protected]> * Update tests/accelerators/test_dp.py Co-authored-by: Carlos Mocholí <[email protected]> * update changelog Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit 248a8e8)
* fix * update * update * add changelog * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <[email protected]> * Update tests/accelerators/test_dp.py Co-authored-by: Carlos Mocholí <[email protected]> * update changelog Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit 248a8e8)
* fix * update * update * add changelog * Update CHANGELOG.md Co-authored-by: Carlos Mocholí <[email protected]> * Update tests/accelerators/test_dp.py Co-authored-by: Carlos Mocholí <[email protected]> * update changelog Co-authored-by: Carlos Mocholí <[email protected]> (cherry picked from commit 248a8e8)
What does this PR do?
See title.
Fixes #6193
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 🙃