Commit 85ed7a9
committed
fix: support more dtypes in pad_nd function
- Removes hardcoded dtype exclusion list from pad_nd()
- Enables torch.nn.functional.pad for bool and integer dtypes
- Try-except fallback to numpy still handles unsupported combinations
- Fixes #78421 parent edb58f1 commit 85ed7a9
1 file changed
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 99 | + | |
105 | 100 | | |
106 | 101 | | |
107 | 102 | | |
| |||
0 commit comments