From 3e0149c64b15e4c85e98407d4eae0ede510eba0a Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Fri, 7 Dec 2018 15:40:47 +0000 Subject: COMPMID-1821 (Nighlty) CL/ArgMinMax/Float/ clEnqueueMapBuffer failures Change-Id: I5a9d698f459fd7efdbe85d70d092e79e961cb4dd Reviewed-on: https://review.mlplatform.org/368 Reviewed-by: Michele Di Giorgio Tested-by: Arm Jenkins --- src/core/CL/kernels/CLReductionOperationKernel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 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); -- cgit v1.2.1