From 9e1f074af3a71b5bd5bd87b292c74fb57a90347c Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 17 May 2021 03:06:08 +0100 Subject: Port NEFlatten layer to a memory injecting interface Resolves: COMPMID-4503 Signed-off-by: Georgios Pinitas Change-Id: Ic536f62a9561d709c16d5f9cca28784cb7f281b6 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5650 Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou Comments-Addressed: Arm Jenkins --- arm_compute/runtime/NEON/functions/NEFlattenLayer.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'arm_compute') diff --git a/arm_compute/runtime/NEON/functions/NEFlattenLayer.h b/arm_compute/runtime/NEON/functions/NEFlattenLayer.h index e688e918d9..3e92143824 100644 --- a/arm_compute/runtime/NEON/functions/NEFlattenLayer.h +++ b/arm_compute/runtime/NEON/functions/NEFlattenLayer.h @@ -26,7 +26,8 @@ #include "arm_compute/core/Types.h" #include "arm_compute/runtime/IFunction.h" -#include "arm_compute/runtime/NEON/functions/NEReshapeLayer.h" + +#include namespace arm_compute { @@ -37,6 +38,17 @@ class ITensorInfo; class NEFlattenLayer : public IFunction { public: + NEFlattenLayer(); + /** Destructor */ + ~NEFlattenLayer(); + /** Prevent instances of this class from being copied (As this class contains pointers) */ + NEFlattenLayer(const NEFlattenLayer &) = delete; + /** Default move constructor */ + NEFlattenLayer(NEFlattenLayer &&); + /** Prevent instances of this class from being copied (As this class contains pointers) */ + NEFlattenLayer &operator=(const NEFlattenLayer &) = delete; + /** Default move assignment operator */ + NEFlattenLayer &operator=(NEFlattenLayer &&); /** Initialise the kernel's input and output. * * Valid data layouts: @@ -68,7 +80,8 @@ public: void run() override; private: - NEReshapeLayer _reshape{}; + struct Impl; + std::unique_ptr _impl; }; } // namespace arm_compute -- cgit v1.2.1