aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/functions/CLReshapeLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLReshapeLayer.h')
-rw-r--r--arm_compute/runtime/CL/functions/CLReshapeLayer.h40
1 files changed, 36 insertions, 4 deletions
diff --git a/arm_compute/runtime/CL/functions/CLReshapeLayer.h b/arm_compute/runtime/CL/functions/CLReshapeLayer.h
index e91c2c739b..dad90e6ba9 100644
--- a/arm_compute/runtime/CL/functions/CLReshapeLayer.h
+++ b/arm_compute/runtime/CL/functions/CLReshapeLayer.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2020 ARM Limited.
+ * Copyright (c) 2017-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -24,18 +24,43 @@
#ifndef ARM_COMPUTE_CLRESHAPELAYER_H
#define ARM_COMPUTE_CLRESHAPELAYER_H
+#include "arm_compute/runtime/CL/ICLOperator.h"
#include "arm_compute/runtime/CL/ICLSimpleFunction.h"
+#include <memory>
+
namespace arm_compute
{
+class CLCompileContext;
class ICLTensor;
+class ITensorInfo;
-/** Basic function to run @ref CLReshapeLayerKernel */
-class CLReshapeLayer : public ICLSimpleFunction
+/** Basic function to run @ref opencl::kernels::ClReshapeKernel */
+class CLReshapeLayer : public IFunction
{
public:
+ /** Default Constructor */
+ CLReshapeLayer();
+ /** Default Destructor */
+ ~CLReshapeLayer();
+ /** Prevent instances of this class from being copied (As this class contains pointers) */
+ CLReshapeLayer(const CLReshapeLayer &) = delete;
+ /** Default move constructor */
+ CLReshapeLayer(CLReshapeLayer &&);
+ /** Prevent instances of this class from being copied (As this class contains pointers) */
+ CLReshapeLayer &operator=(const CLReshapeLayer &) = delete;
+ /** Default move assignment operator */
+ CLReshapeLayer &operator=(CLReshapeLayer &&);
/** Initialise the kernel's inputs and outputs
*
+ * Valid data layouts:
+ * - All
+ *
+ * Valid data type configurations:
+ * |src |dst |
+ * |:--------------|:--------------|
+ * |All |All |
+ *
* @param[in] input First tensor input. Data type supported: All
* @param[out] output Output tensor. Data type supported: Same as @p input
*/
@@ -56,6 +81,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
#endif /*ARM_COMPUTE_CLRESHAPELAYER_H */