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

5919 fix generalized dice issue #5929

Merged

Conversation

yiheng-wang-nv
Copy link
Contributor

Signed-off-by: Yiheng Wang vennw@nvidia.com

Fixes #5919 .

Description

This PR is used to fix the device issue of function compute_generalized_dice, and cuda tensor input will not raise errors.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Copy link
Contributor

@KumoLiu KumoLiu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
@yiheng-wang-nv
Copy link
Contributor Author

device based tests are added on all metrics except the following (I think it's no need to check):

  1. froc (numpy based calculation)
  2. loss_metric
  3. regression and rocauc (classification metrics).

Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks!

@wyli
Copy link
Contributor

wyli commented Feb 2, 2023

/build

@wyli wyli enabled auto-merge (squash) February 2, 2023 12:21
@wyli wyli merged commit 3c8f6c6 into Project-MONAI:dev Feb 2, 2023
@yiheng-wang-nv yiheng-wang-nv deleted the 5919-fix-generalized-dice-device-issue branch February 2, 2023 15:21
wyli pushed a commit to wyli/MONAI that referenced this pull request Feb 2, 2023
Signed-off-by: Yiheng Wang <vennw@nvidia.com>

Fixes Project-MONAI#5919 .

### Description

This PR is used to fix the device issue of function
`compute_generalized_dice`, and cuda tensor input will not raise errors.

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics fails or wrong output device with CUDA
3 participants