You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I’d like to explore this issue and work on adding support for additional dtypes in
pad_nd. I’ve gone through the contributing guidelines, and since this issue is
labeled as “Contribution wanted”, I’d like to take it up.
This will be my first time working with the MONAI repository. I’ll validate the
behavior with recent PyTorch versions and follow up with a PR if everything looks
good.
Activity
[-]Support `torch.float32` in `pad_nd`[/-][+]Support more dtypes in `pad_nd`[/+]shubham-61969 commentedon Dec 24, 2025
Hi @function2-llx @KumoLiu ,
I’d like to explore this issue and work on adding support for additional dtypes in
pad_nd. I’ve gone through the contributing guidelines, and since this issue is
labeled as “Contribution wanted”, I’d like to take it up.
This will be my first time working with the MONAI repository. I’ll validate the
behavior with recent PyTorch versions and follow up with a PR if everything looks
good.
fix: support more dtypes in pad_nd function
fix: support more dtypes in pad_nd function
ENH: support additional dtypes in pad_nd (Project-MONAI#8672)
ENH: support additional dtypes in pad_nd (Project-MONAI#8672)
ENH: support additional dtypes in pad_nd (Project-MONAI#8672)
ENH: support additional dtypes in pad_nd (Project-MONAI#8672)