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 dim_zero_cat reduction #2226

Merged
merged 11 commits into from
Nov 25, 2023
Merged

Fix dim_zero_cat reduction #2226

merged 11 commits into from
Nov 25, 2023

Conversation

jankng
Copy link
Contributor

@jankng jankng commented Nov 20, 2023

Fixes #2225 by changing "reduced = global_state + local_state" to "reduced = torch.cat([global_state, local_state]

What does this PR do?

Fixes #<issue_number>

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?
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 🙃


📚 Documentation preview 📚: https://torchmetrics--2226.org.readthedocs.build/en/2226/

Fixes Lightning-AI#2225 by changing "reduced = global_state + local_state" to "reduced = torch.cat([global_state, local_state]
@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Nov 23, 2023
@SkafteNicki SkafteNicki modified the milestones: v1.3.0, v1.2.x Nov 23, 2023
@Borda Borda changed the title Fix "dim_zero_cat" reduction #2225 Fix "dim_zero_cat" reduction Nov 23, 2023
@Borda Borda changed the title Fix "dim_zero_cat" reduction Fix dim_zero_cat reduction Nov 23, 2023
@Borda Borda enabled auto-merge (squash) November 23, 2023 09:16
Copy link

codecov bot commented Nov 25, 2023

Codecov Report

Merging #2226 (46c9fd5) into master (c35a2fb) will decrease coverage by 0%.
The diff coverage is 67%.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #2226   +/-   ##
======================================
- Coverage      87%     87%   -0%     
======================================
  Files         293     293           
  Lines       16423   16425    +2     
======================================
+ Hits        14278   14279    +1     
- Misses       2145    2146    +1     

@mergify mergify bot added ready and removed has conflicts labels Nov 25, 2023
@Borda Borda merged commit 9652899 into Lightning-AI:master Nov 25, 2023
61 checks passed
Borda pushed a commit that referenced this pull request Nov 30, 2023
Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com>
(cherry picked from commit 9652899)
Borda pushed a commit that referenced this pull request Dec 1, 2023
Co-authored-by: Nicki Skafte Detlefsen <skaftenicki@gmail.com>
(cherry picked from commit 9652899)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in "dim_zero_cat" reduction "Metric._reduce_states(...)"
3 participants