39 const ICLTensor *
src{
nullptr };
40 ICLTensor *
dst{
nullptr };
41 std::unique_ptr<opencl::ClFill> op{
nullptr };
45 : _impl(
std::make_unique<Impl>())
63 _impl->op = std::make_unique<opencl::ClFill>();
64 _impl->op->configure(compile_context, _impl->src->info(), constant_value, dst_window);
Class describing the value of a pixel for any image format.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
SimpleTensor< float > src
Copyright (c) 2017-2021 Arm Limited.
void run() override
Run the kernels contained in the function.
CLFill & operator=(const CLFill &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
void configure(ICLTensor *tensor, const PixelValue &constant_value, Window *window=nullptr)
Initialize the kernel's tensor and filling value.
Interface for OpenCL tensor.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
static Status validate(const ITensorInfo *tensor, const PixelValue &constant_value, Window *window=nullptr)
Static function to check if given info will lead to a valid configuration of CLFill.
#define ARM_COMPUTE_ERROR_ON_NULLPTR(...)
Basic function to run opencl::kernels::ClFillKernel.
static Status validate(const ITensorInfo *tensor, const PixelValue &constant_value, Window *window=nullptr)
Static function to check if given info will lead to a valid configuration of kernels::ClFillKernel.
Describe a multidimensional execution window.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.