SIGN IN SIGN UP

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 <sebastian.larsson@arm.com>
S
Sebastian Larsson committed
0480fc0f77e4bc6539ebf56670418373aaa68343
Parent: 318e26b
Committed by GitHub <noreply@github.com> on 4/23/2025, 3:45:25 PM