24.02.1
|
Go to the documentation of this file.
35 namespace experimental
43 auto k = std::make_unique<arm_compute::opencl::kernels::ClLogicalBinaryKernel>();
45 _kernel = std::move(k);
59 struct CLLogicalAnd::Impl
62 const ICLTensor *src1{
nullptr};
63 ICLTensor *
dst{
nullptr};
64 std::unique_ptr<experimental::CLLogicalAnd> op{
nullptr};
87 _impl->op = std::make_unique<experimental::CLLogicalAnd>();
88 _impl->op->configure(compile_context, input1->
info(), input2->
info(), output->
info());
103 _impl->op->run(
pack);
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
Interface for OpenCL tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
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.
CLLogicalAnd()
Default Constructor.
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::ker...
CLLogicalAnd & operator=(const CLLogicalAnd &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
Copyright (c) 2017-2024 Arm Limited.
Basic function to run arm_compute::opencl::kernels::ClLogicalBinaryKernel.
void configure(const CLCompileContext &compile_context, ITensorInfo *input1, ITensorInfo *input2, ITensorInfo *output)
Initialise the kernel's inputs, output and conversion policy.
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output)
Initialize the function.
void run() override
Run the kernels contained in the function.
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.
Store the tensor's metadata.
~CLLogicalAnd()
Default Destructor.
#define ARM_COMPUTE_LOG_PARAMS(...)
void run(ITensorPack &tensors) override
Run the kernels contained in the function.