From 8ae292931aa9b4677092f51a46c0fb07a8807f89 Mon Sep 17 00:00:00 2001 From: Tim Hall Date: Wed, 28 Jul 2021 16:52:03 +0100 Subject: 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 Change-Id: I8cff542ae840fb110ea97c0cc86bb761d5a884d3 --- ethosu/vela/tflite_graph_optimiser.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ethosu/vela/tflite_graph_optimiser.py') 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, ) -- cgit v1.2.1