From a4a2354be8de6364552896e9f1c9ac222ea52eb9 Mon Sep 17 00:00:00 2001 From: SiCong Li Date: Wed, 6 Dec 2023 17:24:20 +0000 Subject: Use the correct output qinfo for ssd_mobilenet QASYMM8_SIGNED Resolves COMPMID-6736 Signed-off-by: SiCong Li Change-Id: Ib887c56afcf481366f1fa9c9f456a43c27269e52 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10844 Reviewed-by: Jakub Sujak Benchmark: Arm Jenkins Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- examples/graph_ssd_mobilenet.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/graph_ssd_mobilenet.cpp b/examples/graph_ssd_mobilenet.cpp index 5162fe6890..6218d47dd6 100644 --- a/examples/graph_ssd_mobilenet.cpp +++ b/examples/graph_ssd_mobilenet.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2022 Arm Limited. + * Copyright (c) 2018-2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -21,6 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ +#include "arm_compute/core/utils/quantization/AsymmHelpers.h" #include "arm_compute/graph.h" #include "support/ToolchainSupport.h" @@ -757,7 +758,8 @@ private: std::move(conv_16_2_class_pre), std::move(conv_17_2_class_pre)) .set_name("ClassPrediction/concat"); - const QuantizationInfo logistic_out_qinfo = QuantizationInfo(0.00390625f, 0); + const QuantizationInfo logistic_out_qinfo = QuantizationInfo( + 0.00390625f, quantization::get_min_max_values_from_quantized_data_type(common_params.data_type).first); class_pred << ActivationLayer(ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::LOGISTIC), logistic_out_qinfo) .set_name("ClassPrediction/logistic"); -- cgit v1.2.1