Arm backend: Convert assert to throw ValueError in op_sigmoid (#9875)
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. Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
S
Sebastian Larsson committed
a884e9274de4ada2641f1ec23f68178799bc0914
Parent: ab3b3f0
Committed by GitHub <noreply@github.com>
on 4/3/2025, 6:38:19 PM