IVGCVSW-4679 Fix VTS DeadlineTest failures 1.3 CpuAcc CpuRef
* Optional timeline parameters are not supported yet.
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: Ic5d6cd6af0cd87d4acba102a48fc94ec8b406377
diff --git a/ConversionUtils.hpp b/ConversionUtils.hpp
index ebfc43b..d19131c 100644
--- a/ConversionUtils.hpp
+++ b/ConversionUtils.hpp
@@ -3193,10 +3193,12 @@
return Fail("%s: Could not convert paddings", __func__);
}
+ // For a ANEURALNETWORKS_TENSOR_QUANT8_ASYMM and ANEURALNETWORKS_TENSOR_QUANT8_ASYMM_SIGNED tensor,
+ // the scale and zeroPoint must be the same as input0
// Before Android Q, the pad value for ANEURALNETWORKS_TENSOR_QUANT8_ASYMM was undefined. Since Android Q the pad
// value must be "logical zero" we set it to be equal to the QuantizationOffset so effectively it ends up as
// (QuantizationOffset - QuantizationOffset) * scale = 0.
- if (inputInfo.GetDataType() == armnn::DataType::QAsymmU8)
+ if (inputInfo.GetDataType() == armnn::DataType::QAsymmU8 || inputInfo.GetDataType() == armnn::DataType::QAsymmS8)
{
descriptor.m_PadValue = inputInfo.GetQuantizationOffset();
}