aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2020-08-29 15:09:57 +0100
committertim.hall <tim.hall@arm.com>2020-08-29 14:38:09 +0000
commit71525176b7aee5ed1dc9f7ae09e11a1884238615 (patch)
treeb9eaca5146fe0abce7884c477311fe7f22262230
parentd775e37669061824b1e7b9976611cf8cd1d0cf9e (diff)
downloadethos-u-vela-71525176b7aee5ed1dc9f7ae09e11a1884238615.tar.gz
MLBEDSW-2804: Bias data type check wrong
- Fixed bias check to use quantised values. Signed-off-by: Tim Hall <tim.hall@arm.com> Change-Id: I6d87439938b9b5aeec87814e5a30d59fd06d5748
-rw-r--r--ethosu/vela/supported_operators.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethosu/vela/supported_operators.py b/ethosu/vela/supported_operators.py
index 8ec77207..591f0801 100644
--- a/ethosu/vela/supported_operators.py
+++ b/ethosu/vela/supported_operators.py
@@ -421,8 +421,8 @@ class SupportedOperators:
# check if values fits in 40-bit
if bias_tensor.dtype == DataType.int64:
- for value in bias_tensor.values:
- if not (-(1 << 39) <= value < (1 << 39)):
+ for quant_value in bias_tensor.quant_values:
+ if not (-(1 << 39) <= quant_value < (1 << 39)):
return False
return True