Commit cebe051
authored
Arm backend: Replace asserts with ValueError for slicing constraints (#10748)
The existing code used assertions to validate slicing parameters (e.g.,
size must be positive and within dimension limits). This has been
changed to raise ValueError with descriptive error messages to provide
clearer feedback and robustness for invalid inputs when using
aten.slice_copy.Tensor.
Signed-off-by: Sebastian Larsson <[email protected]>1 parent 6932baf commit cebe051
1 file changed
+20
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
73 | 81 | | |
74 | 82 | | |
75 | 83 | | |
| |||
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
125 | | - | |
126 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
127 | 143 | | |
128 | 144 | | |
129 | 145 | | |
| |||
0 commit comments