21.02
|
Basic function to run CLRangeKernel. More...
#include <CLRange.h>
Public Member Functions | |
void | configure (ICLTensor *output, float start, float end, float step=1.f) |
Initialize the kernel's start, end, step and output tensor. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *output, float start, float end, float step=1.f) |
Initialize the kernel's start, end, step and output tensor. More... | |
Public Member Functions inherited from ICLSimpleFunction | |
ICLSimpleFunction (CLRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLSimpleFunction (const ICLSimpleFunction &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction (ICLSimpleFunction &&)=default | |
Default move constructor. More... | |
ICLSimpleFunction & | operator= (const ICLSimpleFunction &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLSimpleFunction & | operator= (ICLSimpleFunction &&)=default |
Default move assignment operator. More... | |
~ICLSimpleFunction () | |
Default destructor. More... | |
void | run () override final |
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 CLRange. More... | |
Basic function to run CLRangeKernel.
void configure | ( | ICLTensor * | 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/QASYMM8/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 34 of file CLRange.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | output, | ||
float | start, | ||
float | end, | ||
float | step = 1.f |
||
) |
Initialize the kernel's start, end, step and output tensor.
[in] | compile_context | The compile context to be used. |
[out] | output | Output tensor. Data types supported: U8/S8/QASYMM8/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 CLRange.cpp.
References CLScheduler::get(), and CLScheduler::tune_kernel_static().
|
static |
Static function to check if given info will lead to a valid configuration of CLRange.
[in] | output | Output tensor info. Data types supported: U8/S8/QASYMM8/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 50 of file CLRange.cpp.
References CLRangeKernel::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().