Compute Library
18.05
|
NEON kernel to perform scaling on a tensor. More...
#include <NEScaleKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEScaleKernel () | |
Default constructor. More... | |
NEScaleKernel (const NEScaleKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEScaleKernel & | operator= (const NEScaleKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEScaleKernel (NEScaleKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NEScaleKernel & | operator= (NEScaleKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NEScaleKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, const ITensor *dx, const ITensor *dy, const ITensor *offsets, ITensor *output, InterpolationPolicy policy, BorderMode border_mode, SamplingPolicy sampling_policy=SamplingPolicy::CENTER) |
Initialise the kernel's inputs, output and interpolation policy. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
BorderSize | border_size () const override |
The size of the border for that kernel. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *dx, const ITensorInfo *dy, const ITensorInfo *offsets, ITensorInfo *output, InterpolationPolicy policy, BorderMode border_mode, SamplingPolicy sampling_policy=SamplingPolicy::CENTER) |
Static function to check if given info will lead to a valid configuration of NEScaleKernel. More... | |
NEON kernel to perform scaling on a tensor.
Definition at line 35 of file NEScaleKernel.h.
NEScaleKernel | ( | ) |
Default constructor.
Referenced by NEScaleKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
Referenced by NEScaleKernel::name().
|
overridevirtual |
The size of the border for that kernel.
Reimplemented from IKernel.
Referenced by NEScaleKernel::name().
void configure | ( | const ITensor * | input, |
const ITensor * | dx, | ||
const ITensor * | dy, | ||
const ITensor * | offsets, | ||
ITensor * | output, | ||
InterpolationPolicy | policy, | ||
BorderMode | border_mode, | ||
SamplingPolicy | sampling_policy = SamplingPolicy::CENTER |
||
) |
Initialise the kernel's inputs, output and interpolation policy.
[in] | input | Source tensor. Data types supported: U8/S16/F32. |
[in] | dx | Pixel's distance between the X real coordinate and the smallest X following integer. Data type supported: F32 |
[in] | dy | Pixel's distance between the Y real coordinate and the smallest Y following integer. Data type supported: F32 |
[in] | offsets | Offset to access the pixel with NEAREST interpolation or the top-left pixel with BILINEAR interpolation in the input tensor. Data type supported: S32. |
[out] | output | Destination tensor. Data types supported: Same as input . All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane. |
[in] | policy | Interpolation type to use |
[in] | border_mode | Border mode policy |
[in] | sampling_policy | (Optional) Sampling policy used by the interpolation. Defaults to SamplingPolicy::CENTER |
Referenced by NEScaleKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 38 of file NEScaleKernel.h.
References arm_compute::test::validation::border_mode, NEScaleKernel::border_size(), arm_compute::CENTER, NEScaleKernel::configure(), arm_compute::test::validation::info(), NEScaleKernel::NEScaleKernel(), NEScaleKernel::operator=(), NEScaleKernel::run(), NEScaleKernel::validate(), IKernel::window(), and NEScaleKernel::~NEScaleKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEScaleKernel::name().
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Implements ICPPKernel.
Referenced by NEScaleKernel::name().
|
static |
Static function to check if given info will lead to a valid configuration of NEScaleKernel.
[in] | input | Source tensor. Data types supported: U8/S16/F32. |
[in] | dx | Pixel's distance between the X real coordinate and the smallest X following integer. Data type supported: F32 |
[in] | dy | Pixel's distance between the Y real coordinate and the smallest Y following integer. Data type supported: F32 |
[in] | offsets | Offset to access the pixel with NEAREST interpolation or the top-left pixel with BILINEAR interpolation in the input tensor. Data type supported: S32. |
[in] | output | Destination tensor. Data types supported: Same as input . All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane. |
[in] | policy | Interpolation type to use |
[in] | border_mode | Border mode policy |
[in] | sampling_policy | (Optional) Sampling policy used by the interpolation. Defaults to SamplingPolicy::CENTER |
Referenced by NEScaleKernel::name().