Skip to content

Conversation

@tchaton
Copy link
Contributor

@tchaton tchaton commented Mar 3, 2021

What does this PR do?

See title.

Fixes #6193

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

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:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 🙃

@tchaton tchaton added the bug Something isn't working label Mar 3, 2021
@tchaton tchaton added this to the 1.2.x milestone Mar 3, 2021
@tchaton tchaton requested a review from awaelchli as a code owner March 3, 2021 15:56
@tchaton tchaton self-assigned this Mar 3, 2021
@codecov
Copy link

codecov bot commented Mar 3, 2021

Codecov Report

Merging #6324 (f44ded5) into master (49c579f) will decrease coverage by 47%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master   #6324     +/-   ##
========================================
- Coverage      93%     46%    -47%     
========================================
  Files         160     160             
  Lines       11415   11304    -111     
========================================
- Hits        10644    5247   -5397     
- Misses        771    6057   +5286     

@tchaton tchaton enabled auto-merge (squash) March 3, 2021 17:11
@carmocca carmocca added the ready PRs ready to be merged label Mar 3, 2021
@Borda Borda force-pushed the bugfix/6193_dp_dont_reduce_dict branch from ab8a942 to 9b1e45f Compare March 4, 2021 19:52
@Borda Borda requested a review from kaushikb11 March 4, 2021 19:52
@mergify mergify bot added the has conflicts label Mar 4, 2021
@mergify mergify bot removed the has conflicts label Mar 4, 2021
@pep8speaks
Copy link

pep8speaks commented Mar 4, 2021

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

@tchaton tchaton merged commit 248a8e8 into master Mar 4, 2021
@tchaton tchaton deleted the bugfix/6193_dp_dont_reduce_dict branch March 4, 2021 23:10
@RunIf(min_gpus=2)
def test_dp_training_step_dict(tmpdir):
"""
This test verify dp properly reduce dictionaries
Copy link
Contributor

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.

Copy link
Contributor

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

@awaelchli awaelchli mentioned this pull request Mar 8, 2021
11 tasks
@tchaton tchaton mentioned this pull request Mar 8, 2021
SeanNaren pushed a commit that referenced this pull request Mar 16, 2021
* 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)
Borda pushed a commit that referenced this pull request Mar 16, 2021
* 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)
lexierule pushed a commit that referenced this pull request Mar 16, 2021
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready PRs ready to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error in returning Dict from training_step with multiple GPUs

7 participants