aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/NEON/functions/NEFlattenLayer.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2021-05-17 03:06:08 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-05-18 09:27:38 +0000
commit9e1f074af3a71b5bd5bd87b292c74fb57a90347c (patch)
treef09b1700634c56bc536382bf57ec11599d5dd0e3 /arm_compute/runtime/NEON/functions/NEFlattenLayer.h
parenta4602729d5b524a2078b9eabbd552b8e7174bfca (diff)
downloadComputeLibrary-9e1f074af3a71b5bd5bd87b292c74fb57a90347c.tar.gz
Port NEFlatten layer to a memory injecting interface
Resolves: COMPMID-4503 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: Ic536f62a9561d709c16d5f9cca28784cb7f281b6 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5650 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/runtime/NEON/functions/NEFlattenLayer.h')
-rw-r--r--arm_compute/runtime/NEON/functions/NEFlattenLayer.h17
1 files changed, 15 insertions, 2 deletions
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 <memory>
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> _impl;
};
} // namespace arm_compute