21.02
|
Basic function to run NEStridedSliceKernel. More...
#include <NEStridedSlice.h>
Public Member Functions | |
NEStridedSlice () | |
Default Constructor. More... | |
~NEStridedSlice () | |
Default Destructor. More... | |
NEStridedSlice (const NEStridedSlice &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEStridedSlice (NEStridedSlice &&) | |
Default move constructor. More... | |
NEStridedSlice & | operator= (const NEStridedSlice &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEStridedSlice & | operator= (NEStridedSlice &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input, ITensor *output, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, int32_t begin_mask=0, int32_t end_mask=0, int32_t shrink_axis_mask=0) |
Configure kernel. 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 *input, const ITensorInfo *output, const Coordinates &starts, const Coordinates &ends, const BiStrides &strides, int32_t begin_mask=0, int32_t end_mask=0, int32_t shrink_axis_mask=0) |
Static function to check if given info will lead to a valid configuration of NEStridedSlice. More... | |
Basic function to run NEStridedSliceKernel.
Definition at line 80 of file NEStridedSlice.h.
NEStridedSlice | ( | ) |
Default Constructor.
Definition at line 58 of file NEStridedSlice.cpp.
References NEStridedSlice::operator=(), and NEStridedSlice::~NEStridedSlice().
|
default |
Default Destructor.
Referenced by NEStridedSlice::NEStridedSlice().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const Coordinates & | starts, | ||
const Coordinates & | ends, | ||
const BiStrides & | strides, | ||
int32_t | begin_mask = 0 , |
||
int32_t | end_mask = 0 , |
||
int32_t | shrink_axis_mask = 0 |
||
) |
Configure kernel.
[in] | input | Source tensor. Data type supported: All |
[out] | output | Destination tensor. Data type supported: Same as input |
[in] | starts | The starts of the dimensions of the input tensor to be sliced. The length must be of rank(input). |
[in] | ends | The ends of the dimensions of the input tensor to be sliced. The length must be of rank(input). |
[in] | strides | The strides of the dimensions of the input tensor to be sliced. The length must be of rank(input). |
[in] | begin_mask | (Optional) If the ith bit of begin_mask is set, starts[i] is ignored and the fullest possible range in that dimension is used instead. |
[in] | end_mask | (Optional) If the ith bit of end_mask is set, ends[i] is ignored and the fullest possible range in that dimension is used instead. |
[in] | shrink_axis_mask | (Optional) If the ith bit of shrink_axis_mask is set, it implies that the ith specification shrinks the dimensionality by 1. A slice of size 1 starting from starts[i] in the dimension must be preserved. |
Definition at line 66 of file NEStridedSlice.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEStridedSlice::NEStridedSlice().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 76 of file NEStridedSlice.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
|
static |
Static function to check if given info will lead to a valid configuration of NEStridedSlice.
[in] | input | Source tensor info. Data type supported: All |
[in] | output | Destination tensor info. Data type supported: Same as input |
[in] | starts | The starts of the dimensions of the input tensor to be sliced. The length must be of rank(input). |
[in] | ends | The ends of the dimensions of the input tensor to be sliced. The length must be of rank(input). |
[in] | strides | The strides of the dimensions of the input tensor to be sliced. The length must be of rank(input). |
[in] | begin_mask | (Optional) If the ith bit of begin_mask is set, starts[i] is ignored and the fullest possible range in that dimension is used instead. |
[in] | end_mask | (Optional) If the ith bit of end_mask is set, ends[i] is ignored and the fullest possible range in that dimension is used instead. |
[in] | shrink_axis_mask | (Optional) If the ith bit of shrink_axis_mask is set, it implies that the ith specification shrinks the dimensionality by 1. A slice of size 1 starting from starts[i] in the dimension must be preserved. |
Definition at line 84 of file NEStridedSlice.cpp.
References NEStridedSlice::validate().
Referenced by NEUnstack::validate().