From 8dfb8820d5fe0f72a923eccc3bb73ee0b87d5511 Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Thu, 13 Jul 2023 15:45:23 +0100 Subject: Enable S64 output in CLArgMinMax Resolves MLCE-1089 Change-Id: I8b385ef8a00ec5de60299bc7a359766ba5417e68 Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9918 Tested-by: Arm Jenkins Reviewed-by: Viet-Hoa Do Benchmark: Arm Jenkins Comments-Addressed: Arm Jenkins --- src/runtime/CL/functions/CLArgMinMaxLayer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/runtime/CL') diff --git a/src/runtime/CL/functions/CLArgMinMaxLayer.cpp b/src/runtime/CL/functions/CLArgMinMaxLayer.cpp index ea6311afdb..b30d739025 100644 --- a/src/runtime/CL/functions/CLArgMinMaxLayer.cpp +++ b/src/runtime/CL/functions/CLArgMinMaxLayer.cpp @@ -96,10 +96,15 @@ void CLArgMinMaxLayer::configure(const CLCompileContext &compile_context, const DataType output_data_type = (output->info()->data_type() == DataType::UNKNOWN) ? DataType::S32 : output->info()->data_type(); auto_init_if_empty(*output->info(), input->info()->clone()->set_tensor_shape(output_shape).set_data_type(output_data_type).reset_padding().set_is_resizable(true)); + TensorShape not_reshaped_output_shape{ input->info()->tensor_shape() }; + not_reshaped_output_shape.set(axis, 1); + auto_init_if_empty(*_not_reshaped_output.info(), input->info()->clone()->set_tensor_shape(not_reshaped_output_shape).set_data_type(output_data_type).reset_padding().set_is_resizable(true)); + _arg_min_max_kernel = std::make_unique(); _arg_min_max_kernel->configure(compile_context, input, &_not_reshaped_output, axis, op); _memory_group.manage(&_not_reshaped_output); + _reshape.configure(compile_context, &_not_reshaped_output, output); _not_reshaped_output.allocator()->allocate(); } -- cgit v1.2.1