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

Spacing transform outputs float64 Tensor data #3051

Closed
Nic-Ma opened this issue Sep 30, 2021 · 0 comments · Fixed by #3052
Closed

Spacing transform outputs float64 Tensor data #3051

Nic-Ma opened this issue Sep 30, 2021 · 0 comments · Fixed by #3052
Assignees
Labels
bug Something isn't working

Comments

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Sep 30, 2021

Describe the bug
The PR #3045 introduced an issue that it converted the output data dytpe to the computation dtype, actually it should always output float32:
https://github.com/Project-MONAI/MONAI/blob/0.7.0/monai/transforms/spatial/array.py#L127
And I think no need to deepcopy the image:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/spatial/array.py#L203

@Nic-Ma Nic-Ma self-assigned this Sep 30, 2021
@Nic-Ma Nic-Ma added the bug Something isn't working label Sep 30, 2021
@Nic-Ma Nic-Ma added this to the Bug Fixes or Misc improvements milestone Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant