aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/kernels/CLReductionOperationKernel.cpp
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2018-12-07 15:40:47 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2018-12-07 16:53:37 +0000
commit3e0149c64b15e4c85e98407d4eae0ede510eba0a (patch)
treefa3d1ea4c83e546563774a1fbf2e9fb4d8836553 /src/core/CL/kernels/CLReductionOperationKernel.cpp
parent2ade452bba9211fb999ec4ae303521b9efd041b5 (diff)
downloadComputeLibrary-3e0149c64b15e4c85e98407d4eae0ede510eba0a.tar.gz
COMPMID-1821 (Nighlty) CL/ArgMinMax/Float/ clEnqueueMapBuffer failures
Change-Id: I5a9d698f459fd7efdbe85d70d092e79e961cb4dd Reviewed-on: https://review.mlplatform.org/368 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/CL/kernels/CLReductionOperationKernel.cpp')
-rw-r--r--src/core/CL/kernels/CLReductionOperationKernel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/CL/kernels/CLReductionOperationKernel.cpp b/src/core/CL/kernels/CLReductionOperationKernel.cpp
index f6dc4a8806..959209edc0 100644
--- a/src/core/CL/kernels/CLReductionOperationKernel.cpp
+++ b/src/core/CL/kernels/CLReductionOperationKernel.cpp
@@ -80,12 +80,13 @@ std::tuple<Status, Window> validate_and_configure_window(ITensorInfo *input, ITe
const unsigned int num_elems_processed_per_iteration = (is_data_type_quantized(input->data_type()) && (axis == 0)) ? 1 : 16;
Window win = calculate_max_window(*input, Steps(num_elems_processed_per_iteration));
bool window_changed = false;
+ const bool is_arg_op = (op == ReductionOperation::ARG_IDX_MAX || op == ReductionOperation::ARG_IDX_MIN);
switch(axis)
{
case 0:
{
- if(is_data_type_quantized(input->data_type()))
+ if(is_data_type_quantized(input->data_type()) || is_arg_op)
{
AccessWindowHorizontal input_access(input, 0, input->dimension(0));
AccessWindowHorizontal output_access(output, 0, 1);