aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/functions/CLLogicalNot.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime/CL/functions/CLLogicalNot.h')
-rw-r--r--arm_compute/runtime/CL/functions/CLLogicalNot.h44
1 files changed, 13 insertions, 31 deletions
diff --git a/arm_compute/runtime/CL/functions/CLLogicalNot.h b/arm_compute/runtime/CL/functions/CLLogicalNot.h
index f1f2ac1162..c7d9db93d7 100644
--- a/arm_compute/runtime/CL/functions/CLLogicalNot.h
+++ b/arm_compute/runtime/CL/functions/CLLogicalNot.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020 Arm Limited.
+ * Copyright (c) 2020-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -24,43 +24,17 @@
#ifndef ARM_COMPUTE_CLLOGICALNOT_H
#define ARM_COMPUTE_CLLOGICALNOT_H
-#include "arm_compute/core/Error.h"
-#include "arm_compute/runtime/CL/ICLOperator.h"
+#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/IFunction.h"
+#include <memory>
+
namespace arm_compute
{
class CLCompileContext;
class ICLTensor;
class ITensorInfo;
-namespace experimental
-{
-class CLLogicalNot : public ICLOperator
-{
-public:
- /** Default Constructor */
- CLLogicalNot() = default;
- /** Initialise the kernel's inputs, output and conversion policy.
- *
- * @param[in] compile_context The compile context to be used.
- * @param[in, out] input Tensor input. Data types supported: U8.
- * @param[out] output Output tensor. Data types supported: same as @p input.
- */
- void configure(const CLCompileContext &compile_context, const ITensorInfo *input, ITensorInfo *output);
- /** Static function to check if given info will lead to a valid configuration of @ref CLElementWiseUnaryLayerKernel
- *
- * @param[in] input Tensor input info. Data types supported: U8.
- * @param[in] output Output tensor info. Data types supported: same as @p input.
- *
- * @return a status
- */
- static Status validate(const ITensorInfo *input, const ITensorInfo *output);
- // Inherited methods overridden:
- void run(ITensorPack &tensors) override;
-};
-} // namespace experimental
-
/** Basic function to do logical NOT operation
*
* @note The tensor data type for the inputs must be U8.
@@ -83,6 +57,14 @@ public:
CLLogicalNot &operator=(CLLogicalNot &&);
/** Initialize the function
*
+ * Valid data layouts:
+ * - All
+ *
+ * Valid data type configurations:
+ * |src |dst |
+ * |:--------------|:------------|
+ * |U8 |U8 |
+ *
* @param[in] input Input tensor. Data types supported: U8.
* @param[out] output Output tensor. Data types supported: same as @p input.
*/
@@ -102,7 +84,7 @@ public:
* @return a status
*/
static Status validate(const ITensorInfo *input, const ITensorInfo *output);
- void run() override;
+ void run() override;
private:
struct Impl;