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

Option to disable automatic syncronization #1107

Merged
merged 10 commits into from
Jun 30, 2022
Merged

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Jun 22, 2022

What does this PR do?

Fixes #1093
Adds kwargs option to disable automatic syncing when compute is called.

Default is still True meaning that we will auto sync on compute.

Before submitting

  • Was this discussed/approved 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 🙃

@SkafteNicki SkafteNicki added the enhancement New feature or request label Jun 22, 2022
@SkafteNicki SkafteNicki added this to the v0.10 milestone Jun 22, 2022
@SkafteNicki SkafteNicki changed the title sync option Option to disable automatic syncronization Jun 22, 2022
@SkafteNicki SkafteNicki marked this pull request as ready for review June 28, 2022 14:52
@Borda Borda enabled auto-merge (squash) June 29, 2022 12:12
src/torchmetrics/metric.py Outdated Show resolved Hide resolved
src/torchmetrics/metric.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jun 30, 2022

Codecov Report

Merging #1107 (4cefb24) into master (0d7231d) will decrease coverage by 0%.
The diff coverage is 83%.

@@          Coverage Diff           @@
##           master   #1107   +/-   ##
======================================
- Coverage      94%     94%   -0%     
======================================
  Files         180     180           
  Lines        8079    8082    +3     
======================================
+ Hits         7594    7596    +2     
- Misses        485     486    +1     

@Borda Borda merged commit b49e579 into master Jun 30, 2022
@Borda Borda deleted the feature/sync_on_compute branch June 30, 2022 10:05
@mergify mergify bot added the ready label Jun 30, 2022
Borda pushed a commit that referenced this pull request Jul 22, 2022
* sync option
* changelog
* more testing
* fix missing arg

(cherry picked from commit b49e579)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Help needed - Disable automated syncing between processes
3 participants