24.02.1
|
Go to the documentation of this file.
37 const ICLTensor *
src{
nullptr};
38 ICLTensor *
dst{
nullptr};
39 std::unique_ptr<opencl::ClScale> op{
nullptr};
60 _impl->op = std::make_unique<opencl::ClScale>();
61 _impl->op->configure(compile_context,
input->info(), output->
info(),
info);
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.
~CLScale()
Default Destructor.
SimpleTensor< float > src
Interface for OpenCL tensor.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
static CLKernelLibrary & get()
Access the KernelLibrary singleton.
Manages all the OpenCL kernels compilation and caching, provides accessors for the OpenCL Context.
void run() override
Run the kernels contained in the function.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
void configure(ICLTensor *input, ICLTensor *output, const ScaleKernelInfo &info)
Initialize the function's source, destination, interpolation type and border_mode.
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.
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
CLScale()
Default Constructor.