aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/functions/CLFlattenLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLFlattenLayer.h')
-rw-r--r--arm_compute/runtime/CL/functions/CLFlattenLayer.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/arm_compute/runtime/CL/functions/CLFlattenLayer.h b/arm_compute/runtime/CL/functions/CLFlattenLayer.h
index 8dedd7458d..182e97dc67 100644
--- a/arm_compute/runtime/CL/functions/CLFlattenLayer.h
+++ b/arm_compute/runtime/CL/functions/CLFlattenLayer.h
@@ -25,25 +25,40 @@
#define ARM_COMPUTE_CLFLATTENLAYER_H
#include "arm_compute/core/Types.h"
-#include "arm_compute/runtime/CL/functions/CLReshapeLayer.h"
#include "arm_compute/runtime/IFunction.h"
+#include <memory>
namespace arm_compute
{
class CLCompileContext;
class ICLTensor;
class ITensorInfo;
-/** Basic function to execute flatten. This function calls the following OpenCL kernel:
-*
-* -# @ref CLReshapeLayer
-*
-*/
+/** Basic function to execute flatten */
class CLFlattenLayer : public IFunction
{
public:
+ CLFlattenLayer();
+ /** Destructor */
+ ~CLFlattenLayer();
+ /** Prevent instances of this class from being copied (As this class contains pointers) */
+ CLFlattenLayer(const CLFlattenLayer &) = delete;
+ /** Default move constructor */
+ CLFlattenLayer(CLFlattenLayer &&);
+ /** Prevent instances of this class from being copied (As this class contains pointers) */
+ CLFlattenLayer &operator=(const CLFlattenLayer &) = delete;
+ /** Default move assignment operator */
+ CLFlattenLayer &operator=(CLFlattenLayer &&);
/** 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 above the third will be interpreted as batches. Data types supported: All.
* @param[out] output Output tensor with shape [w*h*d, input_batches] where:
@@ -74,7 +89,8 @@ public:
void run() override;
private:
- CLReshapeLayer _reshape{};
+ struct Impl;
+ std::unique_ptr<Impl> _impl;
};
} // namespace arm_compute