24.02.1
|
Basic function to execute concatenate tensors along a given axis. More...
#include <CLConcatenateLayer.h>
Public Member Functions | |
CLConcatenateLayer () | |
Default constructor. More... | |
~CLConcatenateLayer () | |
Destructor. More... | |
CLConcatenateLayer (const CLConcatenateLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLConcatenateLayer (CLConcatenateLayer &&) | |
Default move constructor. More... | |
CLConcatenateLayer & | operator= (const CLConcatenateLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLConcatenateLayer & | operator= (CLConcatenateLayer &&) |
Default move assignment operator. More... | |
void | configure (std::vector< const ICLTensor * > &inputs_vector, ICLTensor *output, size_t axis) |
Initialise the kernel's inputs vector and output. More... | |
void | configure (const CLCompileContext &compile_context, std::vector< const ICLTensor * > &inputs_vector, ICLTensor *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 CLConcatenateLayer. More... | |
Basic function to execute concatenate tensors along a given axis.
This function calls the following kernels:
Definition at line 49 of file CLConcatenateLayer.h.
Default constructor.
Definition at line 43 of file CLConcatenateLayer.cpp.
|
default |
Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | const CLCompileContext & | compile_context, |
std::vector< const ICLTensor * > & | inputs_vector, | ||
ICLTensor * | output, | ||
size_t | axis | ||
) |
Initialise the kernel's inputs vector and output.
[in] | compile_context | The compile context to be used. |
[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 58 of file CLConcatenateLayer.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_NULLPTR, and ARM_COMPUTE_LOG_PARAMS.
void configure | ( | std::vector< const ICLTensor * > & | inputs_vector, |
ICLTensor * | output, | ||
size_t | axis | ||
) |
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 53 of file CLConcatenateLayer.cpp.
References CLKernelLibrary::get().
Referenced by CLLSTMLayerQuantized::configure(), and CLLSTMLayer::configure().
|
default |
Default move assignment operator.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 88 of file CLConcatenateLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_VEC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
Referenced by CLLSTMLayerQuantized::prepare(), CLLSTMLayer::prepare(), CLLSTMLayerQuantized::run(), and CLLSTMLayer::run().
|
static |
Static function to check if given info will lead to a valid configuration of CLConcatenateLayer.
[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 81 of file CLConcatenateLayer.cpp.
References ClConcatenate::validate().
Referenced by CLLSTMLayerQuantized::validate(), and CLLSTMLayer::validate().