From 807ce59755c4aecc5be6d9ef7d0305f895acdfa3 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Fri, 3 Jan 2020 14:39:37 +0000 Subject: COMPMID-2999: Nighliy Build Failure [655] - Bare metal build for armv7 Change-Id: I42f06fd2520a7efe5e6d40f7f9829e3d33c9e387 Signed-off-by: Michele Di Giorgio Reviewed-on: https://review.mlplatform.org/c/2534 Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- .../kernels/NEGEMMLowpOffsetContributionOutputStageKernel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/NEON/kernels/NEGEMMLowpOffsetContributionOutputStageKernel.cpp') diff --git a/src/core/NEON/kernels/NEGEMMLowpOffsetContributionOutputStageKernel.cpp b/src/core/NEON/kernels/NEGEMMLowpOffsetContributionOutputStageKernel.cpp index 86abb2d65c..5d2df6d2c9 100644 --- a/src/core/NEON/kernels/NEGEMMLowpOffsetContributionOutputStageKernel.cpp +++ b/src/core/NEON/kernels/NEGEMMLowpOffsetContributionOutputStageKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 ARM Limited. + * Copyright (c) 2019-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -909,11 +909,11 @@ get_configured_function(const ITensor *mm_result, const ITensor *vector_sum_row, && mm_result->info()->tensor_shape().y() != vector_sum_row->info()->tensor_shape().x(); // Check if we need to clamp the result using min and max - PixelValue type_min = 0; - PixelValue type_max = 0; + PixelValue type_min{}; + PixelValue type_max{}; std::tie(type_min, type_max) = get_min_max(output->info()->data_type()); - int type_min_int = type_min.get(); - int type_max_int = type_max.get(); + int32_t type_min_int = type_min.get(); + int32_t type_max_int = type_max.get(); const bool is_bounded_relu = !(output_stage.gemmlowp_min_bound == type_min_int && output_stage.gemmlowp_max_bound == type_max_int); // Check if we need to perform fixed point requantization -- cgit v1.2.1