From a1b8babbb492fa4cd3b392f6376a2dfa85fc854d Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Thu, 7 May 2020 12:13:44 +0100 Subject: COMPMID-3463 Refactor NECropKernel Removed most of the templates used in this kernel. This resulted in a reduction of 35Kb. Change-Id: I0d50aa769b361790d47a8017d795f2c92c6d8a6f Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3158 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Sang-Hoon Park --- arm_compute/core/NEON/kernels/NECropKernel.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'arm_compute/core/NEON') diff --git a/arm_compute/core/NEON/kernels/NECropKernel.h b/arm_compute/core/NEON/kernels/NECropKernel.h index 7f2dabf5cd..557a7a8ff3 100644 --- a/arm_compute/core/NEON/kernels/NECropKernel.h +++ b/arm_compute/core/NEON/kernels/NECropKernel.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 ARM Limited. + * Copyright (c) 2019-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -28,9 +28,6 @@ #include "arm_compute/core/Types.h" #include "arm_compute/core/Types.h" -#include -#include - namespace arm_compute { // Forward declarations @@ -94,7 +91,7 @@ public: void run(const Window &window, const ThreadInfo &info) override; /** Function to use for in bounds crop for the particular tensor types passed to configure() */ - using InBoundsCropFunction = void(const ITensor *, const ITensor *, float *, Coordinates, int32_t, int32_t, int32_t); + using InBoundsCropFunction = void(const ITensor *, const ITensor *, float *, Coordinates, int32_t, int32_t, int32_t, bool, bool); private: const ITensor *_input; @@ -111,13 +108,7 @@ private: /** The number of columns out of bounds at the start and end of output. */ std::array _cols_out_of_bounds; - std::pair _in_bounds_crop_functions; NECropKernel::InBoundsCropFunction *_in_bounds_crop_function; - - using CropFunction = void(const ITensor *, const ITensor *, Coordinates, float, const std::array &, const std::array &, - NECropKernel::InBoundsCropFunction *); - - NECropKernel::CropFunction *_crop_function; }; } // namespace arm_compute #endif /*ARM_COMPUTE_NEON_CROP_KERNEL_H */ -- cgit v1.2.1