Commit c70c208
authored
Arm backend: Convert assert to throw ValueError in tosa_backend (pytorch#9905)
There's a risk with using asserts in production code as it might get
optimized out. A proper error is raised instead.
Signed-off-by: Sebastian Larsson <[email protected]>1 parent 2b4e525 commit c70c208
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments