36 const ICLTensor *
src{
nullptr };
37 ICLTensor *
dst{
nullptr };
38 std::unique_ptr<opencl::ClScale> op{
nullptr };
42 : _impl(
std::make_unique<Impl>())
57 _impl->op = std::make_unique<opencl::ClScale>();
58 _impl->op->configure(compile_context, input->
info(), output->
info(),
info);
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Store the tensor's metadata.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context...
SimpleTensor< float > src
Copyright (c) 2017-2022 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.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
static Status validate(const ITensorInfo *src, const ITensorInfo *dst, const ScaleKernelInfo &info)
Static function to check if given info will lead to a valid configuration.
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 OpenCL tensor.
CLScale()
Default Constructor.
void run() override
Run the kernels contained in the function.
~CLScale()
Default Destructor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.