21.02
|
Basic function to perform tensor slicing. More...
#include <NESlice.h>
Public Member Functions | |
NESlice () | |
Default Constructor. More... | |
~NESlice () | |
Default Destructor. More... | |
NESlice (const NESlice &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NESlice (NESlice &&) | |
Default move constructor. More... | |
NESlice & | operator= (const NESlice &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NESlice & | operator= (NESlice &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input, ITensor *output, const Coordinates &starts, const Coordinates &ends) |
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) |
Static function to check if given info will lead to a valid configuration of NESlice. More... | |
NESlice | ( | ) |
Default Constructor.
Definition at line 72 of file NESlice.cpp.
References NESlice::operator=(), and NESlice::~NESlice().
|
default |
Default Destructor.
Referenced by NESlice::NESlice().
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
const Coordinates & | starts, | ||
const Coordinates & | ends | ||
) |
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). |
Definition at line 85 of file NESlice.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
Referenced by NEFFTConvolutionLayer::configure(), and NELSTMLayerQuantized::configure().
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NESlice::NESlice().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 93 of file NESlice.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
Referenced by NEFFTConvolutionLayer::run(), and NELSTMLayerQuantized::run().
|
static |
Static function to check if given info will lead to a valid configuration of NESlice.
[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). |
Definition at line 80 of file NESlice.cpp.
References NESlice::validate().
Referenced by NELSTMLayerQuantized::validate().