Skip to content
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 state_dict() hanging process with torchmetrics 0.4 #8218

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Jun 30, 2021

What does this PR do?

Fixes hanging process due to state_dict() not being called on all ranks.
This is necessary after torchmetrics 0.4, PR Lightning-AI/torchmetrics#302
PL master is fine.
This fix will be included in the weekly patch release #8198

Additional context: Lightning-AI/torchmetrics#331

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?

I made sure I had fun coding 🙃

@awaelchli awaelchli added bug Something isn't working priority: 0 High priority task labels Jun 30, 2021
@awaelchli awaelchli added this to the v1.3.x milestone Jun 30, 2021
@awaelchli awaelchli changed the title fix hang with torchmetrics 0.4 fix state_dict() hanging process with torchmetrics 0.4 Jun 30, 2021
@codecov
Copy link

codecov bot commented Jun 30, 2021

Codecov Report

Merging #8218 (2b05aed) into release/1.3.x (0ba147d) will decrease coverage by 6%.
The diff coverage is 0%.

@@              Coverage Diff               @@
##           release/1.3.x   #8218    +/-   ##
==============================================
- Coverage             92%     86%    -6%     
==============================================
  Files                200     200            
  Lines              13067   13069     +2     
==============================================
- Hits               11987   11183   -804     
- Misses              1080    1886   +806     

@awaelchli
Copy link
Contributor Author

awaelchli commented Jun 30, 2021

@Borda I think we need to combine our two PRs #8206
Mine fixes the hanging process, yours fixes the api compatibility. How do we want to proceed?

@Borda
Copy link
Member

Borda commented Jun 30, 2021

Mine fixes the hanging process, your's fixes the api compatibility. How do we want to proceed?

I think we shall merge both kinds of independently (do not matter on order) anyway we need Admin to do this merge... :]

@kaushikb11
Copy link
Contributor

@Borda Admins are in a different timezone!

@awaelchli
Copy link
Contributor Author

awaelchli commented Jun 30, 2021

We asked admin to merge this one with failing tests, then #8206 will follow to fix it.

Copy link
Contributor

@tchaton tchaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: 0 High priority task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants