Compute Library
 23.11
CLLogicalAnd Class Reference

#include <CLLogicalAnd.h>

Collaboration diagram for CLLogicalAnd:
[legend]

Public Member Functions

 CLLogicalAnd ()=default
 Default Constructor. More...
 
void configure (const CLCompileContext &compile_context, ITensorInfo *input1, ITensorInfo *input2, ITensorInfo *output)
 Initialise the kernel's inputs, output and conversion policy. More...
 
void run (ITensorPack &tensors) override
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from ICLOperator
 ICLOperator (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLOperator (const ICLOperator &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLOperator (ICLOperator &&)=default
 Default move constructor. More...
 
ICLOperatoroperator= (const ICLOperator &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLOperatoroperator= (ICLOperator &&)=default
 Default move assignment operator. More...
 
void run (ITensorPack &tensors) override
 Run the kernels contained in the function. More...
 
void prepare (ITensorPack &constants) override
 Prepare the function for executing. More...
 
MemoryRequirements workspace () const override
 Return the memory requirements required by the workspace. More...
 
- Public Member Functions inherited from IOperator
virtual ~IOperator ()=default
 Destructor. More...
 

Static Public Member Functions

static Status validate (const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output)
 Static function to check if given info will lead to a valid configuration of arm_compute::opencl::kernels::ClLogicalBinaryKernel. More...
 

Detailed Description

Definition at line 100 of file CLLogicalAnd.h.

Constructor & Destructor Documentation

◆ CLLogicalAnd()

CLLogicalAnd ( )
default

Default Constructor.

Member Function Documentation

◆ configure()

void configure ( const CLCompileContext compile_context,
ITensorInfo input1,
ITensorInfo input2,
ITensorInfo output 
)

Initialise the kernel's inputs, output and conversion policy.

Parameters
[in]compile_contextThe compile context to be used.
[in,out]input1First tensor input. Data types supported: U8. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[in,out]input2Second tensor input. Data types supported: same as input1. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0.
[out]outputOutput tensor. Data types supported: same as input1.

Definition at line 37 of file CLLogicalAnd.cpp.

41 {
42  ARM_COMPUTE_LOG_PARAMS(input1, input2, output);
43  auto k = std::make_unique<arm_compute::opencl::kernels::ClLogicalBinaryKernel>();
44  k->configure(compile_context, LogicalOperation::And, input1, input2, output);
45  _kernel = std::move(k);
46 }

References arm_compute::And, and ARM_COMPUTE_LOG_PARAMS.

◆ run()

void run ( ITensorPack tensors)
overridevirtual

Run the kernels contained in the function.

Parameters
[in]tensorsVector that contains the tensors to operate on.

Implements IOperator.

Definition at line 53 of file CLLogicalAnd.cpp.

54 {
55  ICLOperator::run(tensors);
56 }

References ICLOperator::run().

◆ validate()

Status validate ( const ITensorInfo input1,
const ITensorInfo input2,
const ITensorInfo output 
)
static

Static function to check if given info will lead to a valid configuration of arm_compute::opencl::kernels::ClLogicalBinaryKernel.

Parameters
[in]input1First tensor input info. Data types supported: U8.
[in]input2Second tensor input info. Data types supported: same as input1.
[in]outputOutput tensor info. Data types supported: same as input1.
Returns
a status

Definition at line 48 of file CLLogicalAnd.cpp.

References arm_compute::And, and ClLogicalBinaryKernel::validate().

Referenced by CLLogicalAnd::validate().


The documentation for this class was generated from the following files:
arm_compute::experimental::ICLOperator::run
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
Definition: CLOperator.cpp:37
arm_compute::opencl::kernels::ClLogicalBinaryKernel::validate
static Status validate(LogicalOperation op, const ITensorInfo *src1, const ITensorInfo *src2, const ITensorInfo *dst)
Static function to check if given info will lead to a valid configuration.
Definition: ClElementwiseKernel.cpp:395
ARM_COMPUTE_LOG_PARAMS
#define ARM_COMPUTE_LOG_PARAMS(...)
Definition: Log.h:35
arm_compute::LogicalOperation::And
@ And
Logical And &&.