21.02
|
Basic function to run NERangeKernel. More...
#include <NERange.h>
Public Member Functions | |
NERange () | |
Default constructor. More... | |
NERange (const NERange &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NERange & | operator= (const NERange &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NERange (NERange &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NERange & | operator= (NERange &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NERange () | |
Default destructor. More... | |
void | configure (ITensor *output, float start, float end, float step=1.f) |
Initialize the kernel's start, end, step and output tensor. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *output, float start, float end, float step=1.f) |
Static function to check if given info will lead to a valid configuration of NERange. More... | |
Basic function to run NERangeKernel.
NERange | ( | ) |
Prevent instances of this class from being copied (As this class contains pointers)
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
void configure | ( | ITensor * | output, |
float | start, | ||
float | end, | ||
float | step = 1.f |
||
) |
Initialize the kernel's start, end, step and output tensor.
[out] | output | Output tensor. Data types supported: U8/S8/U16/S16/U32/S32/F16/F32. |
[in] | start | The starting value of the sequence. |
[in] | end | The ending (not including) value of the sequence. |
[in] | step | The gap between each pair of values in the sequence. Default is 1. |
Definition at line 38 of file NERange.cpp.
Prevent instances of this class from being copied (As this class contains pointers)
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 49 of file NERange.cpp.
References Window::DimX, Scheduler::get(), and IScheduler::schedule().
|
static |
Static function to check if given info will lead to a valid configuration of NERange.
[in] | output | Output tensor info. Data types supported: U8/S8/U16/S16/U32/S32/F16/F32. |
[in] | start | The starting value of the sequence. |
[in] | end | The ending (not including) value of the sequence. |
[in] | step | The gap between each pair of values in the sequence. Default is 1. |
Definition at line 44 of file NERange.cpp.
References NERangeKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().