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

map_classes_to_indices warns pending operations #6354

Closed
wyli opened this issue Apr 13, 2023 · 0 comments · Fixed by #6353
Closed

map_classes_to_indices warns pending operations #6354

wyli opened this issue Apr 13, 2023 · 0 comments · Fixed by #6353
Assignees

Comments

@wyli
Copy link
Contributor

wyli commented Apr 13, 2023

Is your feature request related to a problem? Please describe.

def map_classes_to_indices(

before computing coordinates from the input image, raise a warning if there are pending operations in it.

@wyli wyli self-assigned this Apr 13, 2023
@wyli wyli added this to MONAI v1.2 Apr 13, 2023
wyli added a commit to wyli/MONAI that referenced this issue Apr 13, 2023
Signed-off-by: Wenqi Li <[email protected]>
wyli added a commit that referenced this issue Apr 13, 2023
- skip calls to torch.cuda.mem_get_info 
- fixes #6354 


### 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`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Wenqi Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant