40 auto k = std::make_unique<CLComparisonKernel>();
41 k->configure(compile_context, input1, input2, output, operation);
42 _kernel = std::move(k);
50 _border_handler->configure(compile_context, broadcasted_info, _kernel->border_size(),
BorderMode::REPLICATE);
60 template <ComparisonOperation COP>
66 template <ComparisonOperation COP>
69 auto k = std::make_unique<CLComparisonKernel>();
70 k->configure(compile_context, input1, input2, output, COP);
71 _kernel = std::move(k);
79 _border_handler->configure(compile_context, broadcasted_info, _kernel->border_size(),
BorderMode::REPLICATE);
84 template <ComparisonOperation COP>
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output, ComparisonOperation operation)
Initialise the kernel's inputs and outputs.
virtual size_t dimension(size_t index) const =0
Return the size of the requested dimension.
Basic function to run CLComparisonKernel.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
Copyright (c) 2017-2021 Arm Limited.
void configure(ICLTensor *input1, ICLTensor *input2, ICLTensor *output)
Comparison operations used by the class.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
ComparisonOperation
Supported comparison operations.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ComparisonOperation operation)
Static function to check if given info will lead to a valid configuration of CLComparison.
Interface for OpenCL tensor.
Pixels outside the image are assumed to have the same value as the closest image pixel.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ComparisonOperation operation)
Static function to check if given info will lead to a valid configuration of CLComparisonKernel.
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 CLComparison.