diff options
Diffstat (limited to 'src/armnn/TypesUtils.cpp')
-rw-r--r-- | src/armnn/TypesUtils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/armnn/TypesUtils.cpp b/src/armnn/TypesUtils.cpp index 9e58dc8f29..dd27df9c0a 100644 --- a/src/armnn/TypesUtils.cpp +++ b/src/armnn/TypesUtils.cpp @@ -49,8 +49,7 @@ float armnn::Dequantize(QuantizedType value, float scale, int32_t offset) static_assert(IsQuantizedType<QuantizedType>(), "Not an integer type."); ARMNN_ASSERT(scale != 0.f); ARMNN_ASSERT(!IsNan(value)); - float dequantized = boost::numeric_cast<float>(value - offset) * scale; - return dequantized; + return (boost::numeric_cast<float>(value - offset)) * scale; } /// Explicit specialization of Quantize for int8_t |