24.02.1
|
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.
Valid data layouts:
Valid data type configurations:
dst |
---|
U8 |
S8 |
U16 |
S16 |
U32 |
S32 |
F16 |
F32 |
[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 39 of file NERange.cpp.
References ARM_COMPUTE_LOG_PARAMS, arm_compute::mlgo::parser::end(), and arm_compute::cpu::step.
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 CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 51 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 46 of file NERange.cpp.
References arm_compute::mlgo::parser::end(), arm_compute::cpu::step, and NERangeKernel::validate().