Commit 49e6693
committed
Arm backend: Convert assert to throw ValueError in op_sigmoid
Asserts are converted to proper raises to ensure graph integrity.
It should not be possible for sigmoid 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.sigmoid supports more data types than fp32, which is why it should
be checked.
Change-Id: If90fda18ccedde16ed2448188c3b99f766a5c8b0
Signed-off-by: Sebastian Larsson <[email protected]>1 parent 9e7b469 commit 49e6693
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
0 commit comments