aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/NEON
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2020-05-07 12:13:44 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2020-05-13 09:28:00 +0000
commita1b8babbb492fa4cd3b392f6376a2dfa85fc854d (patch)
tree85794a98cea7b2c784764c7b4adf6ed76632806a /arm_compute/core/NEON
parent2cd7a37af612723b712ca37d5fa99e17a84d7425 (diff)
downloadComputeLibrary-a1b8babbb492fa4cd3b392f6376a2dfa85fc854d.tar.gz
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 <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3158 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Diffstat (limited to 'arm_compute/core/NEON')
-rw-r--r--arm_compute/core/NEON/kernels/NECropKernel.h13
1 files changed, 2 insertions, 11 deletions
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 <cstdint>
-#include <map>
-
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<uint32_t, 2> _cols_out_of_bounds;
- std::pair<NECropKernel::InBoundsCropFunction *, NECropKernel::InBoundsCropFunction *> _in_bounds_crop_functions;
NECropKernel::InBoundsCropFunction *_in_bounds_crop_function;
-
- using CropFunction = void(const ITensor *, const ITensor *, Coordinates, float, const std::array<uint32_t, 2> &, const std::array<uint32_t, 2> &,
- NECropKernel::InBoundsCropFunction *);
-
- NECropKernel::CropFunction *_crop_function;
};
} // namespace arm_compute
#endif /*ARM_COMPUTE_NEON_CROP_KERNEL_H */