From c26661f8e488974d24cc44b9c12133b65e859e14 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 21 Feb 2019 14:29:02 +0000 Subject: COMPMID-1710: Fix NEReductionOperation border values for QASYMM8. Remove quantization information when setting the PixelValue on the border as it will quantize the 0 value leading to invalid calculations. Change-Id: I774156e7c9914105e319e8dc09f465a1b86d4b0b Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/749 Reviewed-by: Michalis Spyrou Tested-by: Arm Jenkins --- src/runtime/NEON/functions/NEReductionOperation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/NEON/functions/NEReductionOperation.cpp b/src/runtime/NEON/functions/NEReductionOperation.cpp index 3ec8ef145e..9f81a403f5 100644 --- a/src/runtime/NEON/functions/NEReductionOperation.cpp +++ b/src/runtime/NEON/functions/NEReductionOperation.cpp @@ -77,7 +77,7 @@ void NEReductionOperation::configure(ITensor *input, ITensor *output, unsigned i { // Configure fill border kernel const BorderSize fill_border_size = _reduction_kernel.border_size(); - const PixelValue pixelValue = PixelValue((op == ReductionOperation::PROD) ? 1 : 0, input->info()->data_type(), input->info()->quantization_info()); + const PixelValue pixelValue = (op == ReductionOperation::PROD) ? PixelValue(1, input->info()->data_type(), input->info()->quantization_info()) : PixelValue(0, input->info()->data_type()); _fill_border_kernel.configure(input, fill_border_size, BorderMode::CONSTANT, pixelValue); } } -- cgit v1.2.1