Commit 0480fc0
authored
Arm backend: Convert assert to throw ValueError in op_log (#10392)
Asserts are converted to proper raises to ensure graph integrity.
It should not be possible for log to have more than 1 input for a
correctly formatted graph, but in the node visitor we cannot know for
sure that the graph is formatted correctly.
torch.log supports more data types than fp32, which is why it should be
checked.
Signed-off-by: Sebastian Larsson <[email protected]>1 parent 318e26b commit 0480fc0
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
0 commit comments