diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-02-21 14:29:02 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-02-21 15:59:41 +0000 |
commit | 804aafbce2750049e658af8b01afde731413287f (patch) | |
tree | 71aa9a23baedecbe3ceb3d033a29856ea99cc828 /src | |
parent | d9f9318cffba4051c4ca0ec2028819962bdc2b1c (diff) | |
download | ComputeLibrary-804aafbce2750049e658af8b01afde731413287f.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>
Diffstat (limited to 'src')
-rw-r--r-- | src/runtime/NEON/functions/NEReductionOperation.cpp | 2 |
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); } } |