diff options
Diffstat (limited to 'src/backends/reference/workloads/Decoders.hpp')
-rw-r--r-- | src/backends/reference/workloads/Decoders.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/backends/reference/workloads/Decoders.hpp b/src/backends/reference/workloads/Decoders.hpp index 793e550764..0101789bec 100644 --- a/src/backends/reference/workloads/Decoders.hpp +++ b/src/backends/reference/workloads/Decoders.hpp @@ -40,9 +40,13 @@ inline std::unique_ptr<Decoder<float>> MakeDecoder(const TensorInfo& info, const } case armnn::DataType::Signed32: { - return std::make_unique<ScaledInt32Decoder>( - static_cast<const int32_t*>(data), - info.GetQuantizationScale()); + const float scale = info.GetQuantizationScale(); + if (scale == 0.f) + { + return std::make_unique<Int32Decoder>(static_cast<const int32_t*>(data)); + } + // NOTE: ScaledInt32Decoder is used for quantized convolution biases + return std::make_unique<ScaledInt32Decoder>(static_cast<const int32_t*>(data), scale); } default: { |