24 #ifndef ARM_COMPUTE_NESCALEKERNEL_H 25 #define ARM_COMPUTE_NESCALEKERNEL_H 38 const char *
name()
const override 40 return "NEScaleKernel";
92 void scale_area_nchw_u8(
const Window &window);
96 void scale_bilinear_nchw(
const Window &window);
99 void scale_bilinear_qasymm(
const Window &window);
102 template <
typename T>
103 void scale_nearest_nchw(
const Window &window);
108 ScaleFunctionPtr _func;
117 float _sampling_offset;
BorderMode
Methods available to handle borders.
Class describing the value of a pixel for any image format.
InterpolationPolicy
Interpolation method.
const Window & window() const
The maximum window the kernel can be executed on.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Common interface for all kernels implemented in C++.
Store the tensor's metadata.
Interface for Neon tensor.
NEScaleKernel & operator=(const NEScaleKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Copyright (c) 2017-2021 Arm Limited.
static Status validate(const ITensorInfo *input, const ITensorInfo *dx, const ITensorInfo *dy, const ITensorInfo *offsets, ITensorInfo *output, const ScaleKernelInfo &info)
Static function to check if given info will lead to a valid configuration of NEScaleKernel.
void configure(const ITensor *input, const ITensor *dx, const ITensor *dy, const ITensor *offsets, ITensor *output, const ScaleKernelInfo &info)
Initialise the kernel's inputs, output and interpolation policy.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
~NEScaleKernel()=default
Default destructor.
const char * name() const override
Name of the kernel.
DataLayout
[DataLayout enum definition]
Describe a multidimensional execution window.
NEScaleKernel()
Default constructor.
Neon kernel to perform scaling on a tensor.