23.11
|
Basic function to execute concatenate tensors along a given axis. More...
#include <CpuConcatenate.h>
Public Member Functions | |
CpuConcatenate ()=default | |
void | configure (const std::vector< const ITensorInfo * > &srcs_vector, ITensorInfo *dst, size_t axis) |
Configure operator for a given list of arguments. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
![]() | |
INEOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INEOperator (const INEOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator (INEOperator &&)=default | |
Default move constructor. More... | |
INEOperator & | operator= (const INEOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator & | operator= (INEOperator &&)=default |
Default move assignment operator. More... | |
~INEOperator () | |
Default destructor. More... | |
void | prepare (ITensorPack &constants) override |
Prepare the function for executing. More... | |
MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. More... | |
![]() | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const std::vector< const ITensorInfo * > &srcs_vector, const ITensorInfo *dst, size_t axis) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to execute concatenate tensors along a given axis.
This function calls the following kernels:
Definition at line 43 of file CpuConcatenate.h.
|
default |
void configure | ( | const std::vector< const ITensorInfo * > & | srcs_vector, |
ITensorInfo * | dst, | ||
size_t | axis | ||
) |
Configure operator for a given list of arguments.
[in,out] | srcs_vector | The vectors containing all the tensors to concatenate. Data types supported: QASYMM8/QASYMM8_SIGNED/F16/F32. |
[out] | dst | Output tensor. Data types supported: Same as srcs_vector . |
[in] | axis | Concatenation axis. Supported underlying concatenation axis are 0, 1, 2 and 3. |
Definition at line 45 of file CpuConcatenate.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_THROW_ON, ARM_COMPUTE_LOG_PARAMS, arm_compute::auto_init_if_empty(), arm_compute::misc::shape_calculator::calculate_concatenate_shape(), arm_compute::test::validation::data_type, Window::DimX, Window::DimY, Window::DimZ, arm_compute::test::validation::dst, arm_compute::test::validation::dst_shape, offset(), and CpuConcatenate::validate().
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Reimplemented from INEOperator.
Definition at line 147 of file CpuConcatenate.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, arm_compute::ACL_SRC_VEC, ITensorPack::add_tensor(), ARM_COMPUTE_ERROR, Window::DimY, ITensorPack::empty(), Scheduler::get(), ITensorPack::get_const_tensor(), ITensorPack::get_tensor(), arm_compute::test::validation::pack, IScheduler::schedule_op(), and ITensorPack::size().
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to CpuConcatenate::configure()
Definition at line 101 of file CpuConcatenate.cpp.
References ARM_COMPUTE_ERROR, ARM_COMPUTE_RETURN_ERROR_ON, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, arm_compute::misc::shape_calculator::calculate_concatenate_shape(), Window::DimX, Window::DimY, Window::DimZ, arm_compute::test::validation::dst, arm_compute::test::validation::dst_shape, offset(), arm_compute::test::validation::src, TensorShape::total_size(), CpuConcatenateBatchKernel::validate(), CpuConcatenateWidthKernel::validate(), CpuConcatenateHeightKernel::validate(), and CpuConcatenateDepthKernel::validate().
Referenced by CpuConcatenate::configure(), and NEConcatenateLayer::validate().