Arm backend: Convert assert to throw ValueError in op_tanh (#9896)
Asserts are converted to proper raises to ensure graph integrity. It should not be possible for tanh 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.tanh 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
a4002e812cc4ecb9b347c943808fa67b782d10a9
Parent: b7f35c9
Committed by GitHub <noreply@github.com>
on 4/4/2025, 11:06:44 AM