24.02.1
|
Basic function to split a tensor along a given axis. More...
#include <CPPSplit.h>
Public Member Functions | |
CPPSplit () | |
void | configure (const TensorInterfaceType *input, const std::vector< TensorInterfaceType * > &outputs, unsigned int axis) |
Initialise the kernel's input and outputs. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | run ()=0 |
Run the kernels contained in the function. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const std::vector< ITensorInfo * > &outputs, unsigned int axis) |
Static function to check if given info will lead to a valid configuration of CPPSplit. More... | |
Basic function to split a tensor along a given axis.
Definition at line 38 of file CPPSplit.h.
|
inline |
Definition at line 41 of file CPPSplit.h.
|
inline |
Initialise the kernel's input and outputs.
[in] | input | The input tensor. Data types supported: All |
[out] | outputs | A vector containing the output tensors. Data types supported: Same as input . The output tensors should match the input tensor dimensions for all shape dimensions apart from the split dimension. |
[in] | axis | Axis on which to split the input. |
Definition at line 132 of file CPPSplit.h.
|
inlinestatic |
Static function to check if given info will lead to a valid configuration of CPPSplit.
[in] | input | The input tensor info. Data types supported: All. |
[in] | outputs | A vector containing the output tensors' info. Data types supported: same as input . The output tensors should match the input tensor dimensions for all shape dimensions apart from the split dimension |
[in] | axis | Axis on which to split the input. |
Definition at line 54 of file CPPSplit.h.
Referenced by CPPSplit< CLSlice, ICLTensor >::configure().