32 namespace experimental
36 auto k = std::make_unique<arm_compute::opencl::kernels::ClLogicalBinaryKernel>();
38 _kernel = std::move(k);
52 struct CLLogicalAnd::Impl
57 std::unique_ptr<experimental::CLLogicalAnd> op{
nullptr };
61 : _impl(
std::make_unique<Impl>())
78 _impl->op = std::make_unique<experimental::CLLogicalAnd>();
79 _impl->op->configure(compile_context, input1->
info(), input2->
info(), output->
info());
static Status validate(LogicalOperation op, const ITensorInfo *src1, const ITensorInfo *src2, const ITensorInfo *dst)
Static function to check if the given configuration is valid for this kernel.
CLLogicalAnd & operator=(const CLLogicalAnd &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
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...
Copyright (c) 2017-2021 Arm Limited.
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output)
Initialize the function.
Basic function to run arm_compute::opencl::kernels::ClLogicalBinaryKernel.
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.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
void configure(const CLCompileContext &compile_context, ITensorInfo *input1, ITensorInfo *input2, ITensorInfo *output)
Initialise the kernel's inputs, output and conversion policy.
void run() override
Run the kernels contained in the function.
Interface for OpenCL tensor.
void run(ITensorPack &tensors) override
Run the kernels contained in the function.
CLLogicalAnd()=default
Default Constructor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
~CLLogicalAnd()
Default Destructor.