21.02
|
Basic function to perform tensor slicing. More...
#include <CLSlice.h>
Public Member Functions | |
CLSlice () | |
Default Constructor. More... | |
~CLSlice () | |
Default Destructor. More... | |
CLSlice (const CLSlice &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLSlice (CLSlice &&) | |
Default move constructor. More... | |
CLSlice & | operator= (const CLSlice &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLSlice & | operator= (CLSlice &&) |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output, const Coordinates &starts, const Coordinates &ends) |
Configure kernel. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *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 CLSlice. More... | |
CLSlice | ( | ) |
Default Constructor.
Definition at line 71 of file CLSlice.cpp.
References CLSlice::operator=(), and CLSlice::~CLSlice().
|
default |
Default Destructor.
Referenced by CLSlice::CLSlice().
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | const ICLTensor * | input, |
ICLTensor * | 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 84 of file CLSlice.cpp.
References CLKernelLibrary::get().
Referenced by CLFFTConvolutionLayer::configure(), CLGEMMDeconvolutionLayer::configure(), CLLSTMLayerQuantized::configure(), and arm_compute::test::validation::DATA_TEST_CASE().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output, | ||
const Coordinates & | starts, | ||
const Coordinates & | ends | ||
) |
Configure kernel.
[in] | compile_context | The compile context to be used. |
[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 89 of file CLSlice.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLSlice::CLSlice().
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 97 of file CLSlice.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, and ITensorPack::add_tensor().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), CLGEMMDeconvolutionLayer::run(), CLFFTConvolutionLayer::run(), and CLLSTMLayerQuantized::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLSlice.
[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 79 of file CLSlice.cpp.
References CLSlice::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE(), CLGEMMDeconvolutionLayer::validate(), and CLLSTMLayerQuantized::validate().