Support more dtypes in `pad_nd`
function2-llx opened this issue · comments
To be brief, I just have no idea why torch.bool
(and other integer dtypes except for torch.int32) is considered to be not supported by PyTorch (it seems to work for me with PyTorch 2.3). I will be glad to add a PR.
MONAI/monai/transforms/croppad/functional.py
Lines 99 to 104 in 4029c42