21.02
|
Neon kernel to perform a remap on a tensor. More...
#include <NERemapKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NERemapKernel () | |
Default constructor. More... | |
NERemapKernel (const NERemapKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NERemapKernel & | operator= (const NERemapKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NERemapKernel (NERemapKernel &&)=default | |
Allow instances of this class to be moved. More... | |
NERemapKernel & | operator= (NERemapKernel &&)=default |
Allow instances of this class to be moved. More... | |
~NERemapKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, const ITensor *map_x, const ITensor *map_y, ITensor *output, InterpolationPolicy policy) |
Initialize the kernel's input, output and border mode. 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... | |
virtual void | run_nd (const Window &window, const ThreadInfo &info, const Window &thread_locator) |
legacy compatibility layer for implemantions which do not support thread_locator In these cases we simply narrow the interface down the legacy version More... | |
virtual void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) |
Execute the kernel on the passed window. 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... | |
Neon kernel to perform a remap on a tensor.
Definition at line 35 of file NERemapKernel.h.
NERemapKernel | ( | ) |
Default constructor.
Definition at line 69 of file NERemapKernel.cpp.
Referenced by NERemapKernel::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 NERemapKernel::name().
|
overridevirtual |
The size of the border for that kernel.
Reimplemented from IKernel.
Definition at line 74 of file NERemapKernel.cpp.
Referenced by NERemapKernel::name().
void configure | ( | const ITensor * | input, |
const ITensor * | map_x, | ||
const ITensor * | map_y, | ||
ITensor * | output, | ||
InterpolationPolicy | policy | ||
) |
Initialize the kernel's input, output and border mode.
[in] | input | Source tensor. Data type supported: U8. |
[in] | map_x | Map for X coordinates. Data type supported: F32. |
[in] | map_y | Map for Y coordinates. Data type supported: F32. |
[out] | output | Destination tensor. Data types supported: U8. All but the lowest two dimensions must be the same size as in the input tensor, i.e. remapping is only performed within the XY-plane. |
[in] | policy | The interpolation type. |
Definition at line 79 of file NERemapKernel.cpp.
References ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, arm_compute::F32, arm_compute::test::validation::input, and arm_compute::U8.
Referenced by NERemapKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 38 of file NERemapKernel.h.
References NERemapKernel::border_size(), NERemapKernel::configure(), arm_compute::test::validation::info, arm_compute::test::validation::input, NERemapKernel::NERemapKernel(), NERemapKernel::operator=(), NERemapKernel::run(), IKernel::window(), and NERemapKernel::~NERemapKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NERemapKernel::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. |
Reimplemented from ICPPKernel.
Definition at line 229 of file NERemapKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, and IKernel::window().
Referenced by NERemapKernel::name().