From 0f7ef8ab2171093855a8f21bd39c8fd7066dd629 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Sun, 10 Jan 2021 04:23:52 +0000 Subject: Make memset/copy functions state-less Port following functions: - NECopy - NEFill - NEPermute - NEReshapeLayer Signed-off-by: Georgios Pinitas Change-Id: I75f3f837012abab79c7dde9a20a34f64f75571d8 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4800 Tested-by: Arm Jenkins Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins --- arm_compute/runtime/NEON/functions/NEPermute.h | 29 ++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'arm_compute/runtime/NEON/functions/NEPermute.h') diff --git a/arm_compute/runtime/NEON/functions/NEPermute.h b/arm_compute/runtime/NEON/functions/NEPermute.h index ef8854b360..998a1d6094 100644 --- a/arm_compute/runtime/NEON/functions/NEPermute.h +++ b/arm_compute/runtime/NEON/functions/NEPermute.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020 Arm Limited. + * Copyright (c) 2018-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -24,20 +24,34 @@ #ifndef ARM_COMPUTE_NEPERMUTE_H #define ARM_COMPUTE_NEPERMUTE_H -#include "arm_compute/runtime/NEON/INESimpleFunctionNoBorder.h" +#include "arm_compute/runtime/IFunction.h" #include "arm_compute/core/Types.h" +#include + namespace arm_compute { // Forward declarations class ITensor; class ITensorInfo; -/** Basic function to run @ref NEPermuteKernel */ -class NEPermute : public INESimpleFunctionNoBorder +/** Basic function to run @ref CpuPermuteKernel */ +class NEPermute : public IFunction { public: + /** Default Constructor */ + NEPermute(); + /** Default Destructor */ + ~NEPermute(); + /** Prevent instances of this class from being copied (As this class contains pointers) */ + NEPermute(const NEPermute &) = delete; + /** Default move constructor */ + NEPermute(NEPermute &&); + /** Prevent instances of this class from being copied (As this class contains pointers) */ + NEPermute &operator=(const NEPermute &) = delete; + /** Default move assignment operator */ + NEPermute &operator=(NEPermute &&); /** Configure the permute NEON kernel * * @note Arbitrary permutation vectors are supported with rank not greater than 4 @@ -58,6 +72,13 @@ public: * @return a status */ static Status validate(const ITensorInfo *input, const ITensorInfo *output, const PermutationVector &perm); + + // Inherited methods overridden + void run() override; + +private: + struct Impl; + std::unique_ptr _impl; }; } // namespace arm_compute #endif /* ARM_COMPUTE_NEPERMUTE_H */ -- cgit v1.2.1