aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Gustavsson <patrik.gustavsson@arm.com>2020-10-06 13:58:24 +0200
committerPatrik Gustavsson <patrik.gustavsson@arm.com>2020-10-07 16:10:45 +0200
commit36ad73a0fb46d3f844845c97c56d92de2a7a9b3d (patch)
tree66c8b70581a0539734615fba79f859f01f980e06
parent2febe7fc5ef072481c39c389032746f7e1cbc4b7 (diff)
downloadethos-u-vela-36ad73a0fb46d3f844845c97c56d92de2a7a9b3d.tar.gz
MLBEDSW-3154 Fix issue for checking axis in concat
Fix issue for checking axis in concat, now allowing 0. Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com> Change-Id: I85a5fc3dacdfc66dc01b0e05048dd100254fddff
-rw-r--r--ethosu/vela/supported_operators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py
index fbb306e8..6ae072f0 100644
--- a/ethosu/vela/supported_operators.py
+++ b/ethosu/vela/supported_operators.py
@@ -511,7 +511,7 @@ class SupportedOperators:
return False
if axis < 0:
axis += len(op.inputs[0].shape)
- if not 0 < axis < len(op.inputs[0].shape):
+ if not 0 <= axis < len(op.inputs[0].shape):
print("Warning:", op.type, "invalid axis", axis, ", placing on CPU")
return False
ofm = op.outputs[0]