aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_supported_operators.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_supported_operators.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_supported_operators.py')
-rw-r--r--ethosu/vela/tflite_supported_operators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/tflite_supported_operators.py b/ethosu/vela/tflite_supported_operators.py
index cb3d5048..dc4e6f0c 100644
--- a/ethosu/vela/tflite_supported_operators.py
+++ b/ethosu/vela/tflite_supported_operators.py
@@ -386,7 +386,7 @@ class TFLiteSupportedOperators:
"Optional Bias tensor values must fit within 40-bits"
bias = op.bias
if bias and bias.dtype == DataType.int64 and bias.values is not None:
- valid = all(len(bin(quant_value)[2:]) <= 40 for quant_value in bias.values)
+ valid = all(len(bin(value)[2:]) <= 40 for value in bias.values)
return valid, f"Tensor '{bias.name}' has values larger than 40-bits"
return True, "Op has no bias tensor, or it fits in 40-bit"