45 auto k = std::make_unique<CLScaleKernel>();
47 k->configure(compile_context, input, output, info);
48 _kernel = std::move(k);
67 if(!_kernel->border_size().empty())
BorderMode border_mode
Border mode policy.
static CLScheduler & get()
Access the scheduler singleton.
const DataLayout data_layout
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
Copyright (c) 2017-2021 Arm Limited.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ScaleKernelInfo &info)
Static function to check if given info will lead to a valid configuration of CLScale.
static Status validate(const ITensorInfo *input, const ITensorInfo *output, const ScaleKernelInfo &info)
Static function to check if given info will lead to a valid configuration of CLScaleKernel.
Interface to enqueue OpenCL kernels and get/set the OpenCL CommandQueue and ICLTuner.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
void enqueue(ICLKernel &kernel, bool flush=true)
Schedule the execution of the passed kernel if possible.
Num samples, channels, height, width.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
void configure(ICLTensor *input, ICLTensor *output, const ScaleKernelInfo &info)
Initialize the function's source, destination, interpolation type and border_mode.
Interface for filling the border of a kernel.
Interface for OpenCL tensor.
PixelValue constant_border_value
Constant value to use for constant border mode policy.
CLScale()
Default Constructor.
void run() override
Run the kernels contained in the function.
void tune_kernel_static(ICLKernel &kernel)
Tunes OpenCL kernel.
DataLayout data_layout
Data layout to use.
DataLayout
[DataLayout enum definition]
virtual DataLayout data_layout() const =0
Get the data layout of the tensor.