24.02.1
|
Basic function to execute concatenate tensors along a given axis. More...
#include <NEConcatenateLayer.h>
Public Member Functions | |
NEConcatenateLayer () | |
Default constructor. More... | |
~NEConcatenateLayer () | |
Destructor. More... | |
NEConcatenateLayer (const NEConcatenateLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConcatenateLayer (NEConcatenateLayer &&) | |
Default move constructor. More... | |
NEConcatenateLayer & | operator= (const NEConcatenateLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEConcatenateLayer & | operator= (NEConcatenateLayer &&) |
Default move assignment operator. More... | |
void | configure (std::vector< const ITensor * > inputs_vector, ITensor *output, size_t axis) |
Initialise the kernel's inputs vector and output. 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 std::vector< const ITensorInfo * > &inputs_vector, const ITensorInfo *output, size_t axis) |
Static function to check if given info will lead to a valid configuration of NEConcatenateLayer. More... | |
Basic function to execute concatenate tensors along a given axis.
Definition at line 40 of file NEConcatenateLayer.h.
Default constructor.
Definition at line 47 of file NEConcatenateLayer.cpp.
|
default |
Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
Initialise the kernel's inputs vector and output.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
QASYMM8 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED |
F16 | F16 |
F32 | F32 |
[in,out] | inputs_vector | The vectors containing all the tensors to concatenate. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[out] | output | Output tensor. Data types supported: Same as input . |
[in] | axis | Concatenation axis. Supported underlying concatenation axis are 0, 1, 2 and 3. |
Definition at line 54 of file NEConcatenateLayer.cpp.
References ARM_COMPUTE_ERROR_ON, and ARM_COMPUTE_ERROR_ON_NULLPTR.
Referenced by NELSTMLayerQuantized::configure(), and NELSTMLayer::configure().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 80 of file NEConcatenateLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_VEC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by NELSTMLayerQuantized::prepare(), NELSTMLayer::prepare(), NELSTMLayerQuantized::run(), and NELSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of NEConcatenateLayer.
[in] | inputs_vector | The vectors containing all the tensors info to concatenate. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[in] | output | Output tensor info. Data types supported: Same as input . |
[in] | axis | Concatenation axis. Supported underlying concatenation axis are 0, 1, 2 and 3. |
Definition at line 73 of file NEConcatenateLayer.cpp.
References CpuConcatenate::validate().
Referenced by NELSTMLayerQuantized::validate(), and NELSTMLayer::validate().