MLBEDSW-2985 Avoid reshape if input when there are no values
Added check so that inputs with no values are not reshaped.
Signed-off-by: Patrik Gustavsson <patrik.gustavsson@arm.com>
Change-Id: Id5e53b093508583c2d70ba7e337869db3de32701
diff --git a/ethosu/vela/tflite_reader.py b/ethosu/vela/tflite_reader.py
index a03f9ec..f4f4804 100644
--- a/ethosu/vela/tflite_reader.py
+++ b/ethosu/vela/tflite_reader.py
@@ -159,7 +159,7 @@
if op.type.needs_bias() and len(inputs) <= op_type.info.indices.biases[0]:
# No Bias tensor
inputs.append(None)
- if inputs[-1]:
+ if inputs[-1] and inputs[-1].values is not None:
inputs[-1] = clone_and_reshape_tensor(inputs[-1], (0,))
if opt_serializer is not None: