diff options
Diffstat (limited to 'ethosu/vela/tflite_supported_operators.py')
-rw-r--r-- | ethosu/vela/tflite_supported_operators.py | 2 |
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" |