**Describe the bug** the output of grid resampling is always float32 https://github.com/Project-MONAI/MONAI/blob/6a7f35b7e271cdf3b2c763ae35acf4ab25d85d23/monai/transforms/lazy/utils.py#L226-L227 https://github.com/Project-MONAI/MONAI/blob/6a7f35b7e271cdf3b2c763ae35acf4ab25d85d23/monai/transforms/spatial/functional.py#L182 the crop pad 'resampling' should also output float32 https://github.com/Project-MONAI/MONAI/blob/6a7f35b7e271cdf3b2c763ae35acf4ab25d85d23/monai/transforms/lazy/utils.py#L220-L222 otherwise collating random transforms of different data types can run into exceptions. cc @dongyang0122
Activity
6340 update dtype for lazy resampling (#6341)
merging 6339/6341 (#6343)
wyli commentedon Apr 14, 2023
this is still an issue for the early returning cases
MONAI/monai/transforms/lazy/utils.py
Lines 218 to 219 in 57c618c
SlidingWindowInfererAdapt (#6251)
auto updates and merging 6339/6341/6346 (Project-MONAI#6344)