aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-02-21 14:29:02 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-02-21 16:00:39 +0000
commitc26661f8e488974d24cc44b9c12133b65e859e14 (patch)
tree6ad42ba5c6e19edd06380a654e87bf69e8453252
parent8d5d5888427a0f9c721fa745f0ea457dcf298d03 (diff)
downloadComputeLibrary-c26661f8e488974d24cc44b9c12133b65e859e14.tar.gz
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 <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/749 Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--src/runtime/NEON/functions/NEReductionOperation.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}