diff options
author | Johan Alfvén <johan.alfven@arm.com> | 2022-10-26 12:52:17 +0200 |
---|---|---|
committer | Johan Alfvén <johan.alfven@arm.com> | 2022-10-27 14:32:22 +0200 |
commit | 53605be9fb83fb0a0fa873a0f4d7435654d3df6b (patch) | |
tree | 165a3ebdcfd81b088b50024efa7d970bfec27b5f /ethosu/vela/tflite_reader.py | |
parent | 993ea53f9aabb5746aa96512286bae2dc06ded1b (diff) | |
download | ethos-u-vela-53605be9fb83fb0a0fa873a0f4d7435654d3df6b.tar.gz |
MLBEDSW-7060: Bias tensor should be in 1D shape
Always make sure the bias is a 1D tensor.
Signed-off-by: Johan Alfven <johan.alfven@arm.com>
Change-Id: Ic0cb85d4fb9d2e07b4d1b7ac6059bffa432e28a3
Diffstat (limited to 'ethosu/vela/tflite_reader.py')
-rw-r--r-- | ethosu/vela/tflite_reader.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethosu/vela/tflite_reader.py b/ethosu/vela/tflite_reader.py index fa90ad9e..9fe9ff58 100644 --- a/ethosu/vela/tflite_reader.py +++ b/ethosu/vela/tflite_reader.py @@ -141,8 +141,8 @@ class TFLiteSubgraph: inputs.append(None) if inputs[-1] and inputs[-1].values is not None: # Since bias tensor is used for both bias and scale, - # a clone with a unique equivalence_id is needed - inputs[-1] = clone_and_reshape_tensor(inputs[-1], (0,), True) + # a clone with a unique equivalence_id is needed. + inputs[-1] = clone_and_reshape_tensor(inputs[-1], None, True) if opt_serializer is not None: op.attrs = opt_serializer.deserialize(op_data) |