aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_graph_optimiser.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2021-07-28 16:52:03 +0100
committerTim Hall <tim.hall@arm.com>2021-07-28 16:52:03 +0100
commit8ae292931aa9b4677092f51a46c0fb07a8807f89 (patch)
treee9db07830d0e3343319aff9517e4f5a7d0e992f9 /ethosu/vela/tflite_graph_optimiser.py
parent45e653dbd81633b8d78215b16a9b2205e39dd8e2 (diff)
downloadethos-u-vela-8ae292931aa9b4677092f51a46c0fb07a8807f89.tar.gz
MLBEDSW-4974: create_const_tensor invalid argument
- Fix bug with MEAN ops calling create_const_tensor using the quant_value_dtype keyword argument. Signed-off-by: Tim Hall <tim.hall@arm.com> Change-Id: I8cff542ae840fb110ea97c0cc86bb761d5a884d3
Diffstat (limited to 'ethosu/vela/tflite_graph_optimiser.py')
-rw-r--r--ethosu/vela/tflite_graph_optimiser.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/ethosu/vela/tflite_graph_optimiser.py b/ethosu/vela/tflite_graph_optimiser.py
index 68b4e8ea..29598032 100644
--- a/ethosu/vela/tflite_graph_optimiser.py
+++ b/ethosu/vela/tflite_graph_optimiser.py
@@ -1515,13 +1515,7 @@ def convert_mean_to_depthwise_conv_or_avgpool(op, arch, nng):
bias_shape = [shape[-1]]
op.set_input_tensor(
create_const_tensor(
- "bias",
- bias_shape,
- inp.dtype,
- np.ones(bias_shape) * bias,
- value_dtype=np.int32,
- quant_value_dtype=np.int32,
- quantization=None,
+ "bias", bias_shape, inp.dtype, np.ones(bias_shape) * bias, value_dtype=np.int32, quantization=None,
),
2,
)