diff options
Diffstat (limited to 'arm_compute/runtime/NEON/functions/NEFlattenLayer.h')
-rw-r--r-- | arm_compute/runtime/NEON/functions/NEFlattenLayer.h | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/arm_compute/runtime/NEON/functions/NEFlattenLayer.h b/arm_compute/runtime/NEON/functions/NEFlattenLayer.h index 7b4801cd1c..3e92143824 100644 --- a/arm_compute/runtime/NEON/functions/NEFlattenLayer.h +++ b/arm_compute/runtime/NEON/functions/NEFlattenLayer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019 ARM Limited. + * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -25,18 +25,40 @@ #define ARM_COMPUTE_NEFLATTENLAYER_H #include "arm_compute/core/Types.h" -#include "arm_compute/runtime/NEON/INESimpleFunctionNoBorder.h" +#include "arm_compute/runtime/IFunction.h" + +#include <memory> namespace arm_compute { class ITensor; +class ITensorInfo; /** Basic function to execute flatten layer kernel. */ -class NEFlattenLayer : public INESimpleFunctionNoBorder +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: + * - All + * + * Valid data type configurations: + * |src |dst | + * |:--------------|:--------------| + * |All |All | + * * @param[in] input First input tensor to flatten with at least 3 dimensions. The dimensions over the third will be interpreted as batches. Data types supported: All * @param[out] output Output tensor with shape [w*h*d, input_batches] where: * w = width input tensor, h = height input tensor and d = depth input tensor. Data type supported: same as @p input @@ -53,6 +75,13 @@ public: * @return a status */ static Status validate(const ITensorInfo *input, const ITensorInfo *output); + + // Inherited methods overridden: + void run() override; + +private: + struct Impl; + std::unique_ptr<Impl> _impl; }; } // namespace arm_compute |