MLBEDSW-4075 PACK axis 0 + tanh fails with output diff
The test failed since the tanh had batch size > 1.
Added checks for batch size for all supported operators.
Signed-off-by: Fredrik Svedberg <fredrik.svedberg@arm.com>
Change-Id: I3570352740c40eb96bd9db965dfa3c91c81ff2ad
diff --git a/ethosu/vela/tosa_supported_operators.py b/ethosu/vela/tosa_supported_operators.py
index 15e1569..192862e 100644
--- a/ethosu/vela/tosa_supported_operators.py
+++ b/ethosu/vela/tosa_supported_operators.py
@@ -94,6 +94,9 @@
self.generic_constraints.append(TosaSupportedOperators.constraint_rank) # TODO not supported for all ops yet
self.generic_constraints.append(TosaSupportedOperators.constraint_batch) # TODO not supported for all ops yet
+ # Setup generic constraint exceptions
+ self.generic_constraints_exceptions = defaultdict(list)
+
# Setup specific constraints. Note: the order matters
self.specific_constraints = defaultdict(list)