From ee7c15d8a57b6e1a0a98edf2bb4693024d9c15dd Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Mon, 17 Dec 2018 16:15:34 +0000 Subject: COMPMID-1761: NEON: Implement Pack Change-Id: Icc3392494b1e3361e8fd925da200827c494351b3 Reviewed-on: https://review.mlplatform.org/430 Reviewed-by: Manuel Bottini Tested-by: Arm Jenkins Reviewed-by: Giuseppe Rossini Reviewed-by: Gian Marco Iodice --- src/core/CL/kernels/CLStackLayerKernel.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/core/CL/kernels/CLStackLayerKernel.cpp') diff --git a/src/core/CL/kernels/CLStackLayerKernel.cpp b/src/core/CL/kernels/CLStackLayerKernel.cpp index bac8992f7b..ac179ba5f6 100644 --- a/src/core/CL/kernels/CLStackLayerKernel.cpp +++ b/src/core/CL/kernels/CLStackLayerKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -69,19 +69,9 @@ std::pair validate_and_configure_window(ITensorInfo *input, unsi auto_init_if_empty(*output, input->clone()->set_tensor_shape(compute_stack_shape(*input, axis, num_tensors))); // Configure kernel window - constexpr unsigned int num_elems_processed_per_iteration = 1; + Window win = calculate_max_window(*input); - // The window needs to be based on input as we copy all the depths of input - Window win = calculate_max_window(*input, Steps(num_elems_processed_per_iteration)); - - AccessWindowHorizontal input_access(input, 0, num_elems_processed_per_iteration); - AccessWindowHorizontal output_access(output, 0, num_elems_processed_per_iteration); - - bool window_changed = update_window_and_padding(win, input_access, output_access); - output_access.set_valid_region(win, ValidRegion(Coordinates(), output->tensor_shape())); - - Status err = (window_changed) ? ARM_COMPUTE_CREATE_ERROR(ErrorCode::RUNTIME_ERROR, "Insufficient Padding!") : Status{}; - return std::make_pair(err, win); + return std::make_pair(Status{}, win); } } // namespace -- cgit v1.2.1