Compute Library
 22.11
CLBitwiseNot Class Reference

Basic function to perform bitwise NOT by running CLBitwiseKernel. More...

#include <CLBitwiseNot.h>

Collaboration diagram for CLBitwiseNot:
[legend]

Public Member Functions

void configure (const ICLTensor *input, ICLTensor *output)
 Initialize the function Valid data layouts: More...
 
void configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output)
 Initialize the function. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction (CLRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLSimpleFunction (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLSimpleFunction (ICLSimpleFunction &&)=default
 Default move constructor. More...
 
ICLSimpleFunctionoperator= (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLSimpleFunctionoperator= (ICLSimpleFunction &&)=default
 Default move assignment operator. More...
 
 ~ICLSimpleFunction ()
 Default destructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Detailed Description

Basic function to perform bitwise NOT by running CLBitwiseKernel.

Note
The tensor data type for the inputs must be U8.
The function performs a bitwise NOT operation on input tensor.

Definition at line 39 of file CLBitwiseNot.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( const ICLTensor input,
ICLTensor output 
)

Initialize the function Valid data layouts:

  • All

Valid data type configurations:

src dst
U8 U8
Parameters
[in]inputInput tensor. Data types supported: U8.
[out]outputOutput tensor. Data types supported: U8.

Definition at line 34 of file CLBitwiseNot.cpp.

References CLKernelLibrary::get().

35 {
36  configure(CLKernelLibrary::get().get_compile_context(), input, output);
37 }
void configure(const ICLTensor *input, ICLTensor *output)
Initialize the function Valid data layouts:
static CLKernelLibrary & get()
Access the KernelLibrary singleton.

◆ configure() [2/2]

void configure ( const CLCompileContext compile_context,
const ICLTensor input,
ICLTensor output 
)

Initialize the function.

Parameters
[in]compile_contextThe compile context to be used.
[in]inputInput tensor. Data types supported: U8.
[out]outputOutput tensor. Data types supported: U8.

Definition at line 39 of file CLBitwiseNot.cpp.

References ARM_COMPUTE_LOG_PARAMS, arm_compute::test::validation::k, and arm_compute::NOT.

40 {
42  auto k = std::make_unique<CLBitwiseKernel>();
43  k->configure(compile_context, input, nullptr, output, BitwiseOperation::NOT);
44  _kernel = std::move(k);
45 }
Bitwise NOT operation.
#define ARM_COMPUTE_LOG_PARAMS(...)

The documentation for this class was generated from the following files: