Commit 790cdaa
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 #7842
Signed-off-by: skdas20 <skdas5405@gmail.com>1 parent edb58f1 commit 790cdaa
1 file changed
+1
-6
lines changed| 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