24.02.1
|
Basic function to stack tensors along an axis. More...
#include <NEStackLayer.h>
Public Member Functions | |
NEStackLayer () | |
Default constructor. More... | |
NEStackLayer (const NEStackLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEStackLayer & | operator= (const NEStackLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEStackLayer (NEStackLayer &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEStackLayer & | operator= (NEStackLayer &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEStackLayer () | |
Default destructor. More... | |
void | configure (const std::vector< ITensor * > &input, int axis, ITensor *output) |
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< ITensorInfo * > &input, int axis, const ITensorInfo *output) |
Static function to check if given info will lead to a valid configuration of NEStackLayerKernel. More... | |
Basic function to stack tensors along an axis.
This function calls the following kernel:
Definition at line 44 of file NEStackLayer.h.
NEStackLayer | ( | ) |
Default constructor.
Definition at line 41 of file NEStackLayer.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
Initialise the kernel's inputs vector and output.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
All | All |
[in] | input | The vectors containing all the tensors with the same shape to stack. Data types supported: All |
[in] | axis | The dimension to stack the tensors along. It must be smaller than the number of input dimensions. Negative values wrap around |
[out] | output | Output tensor. Data types supported: Same as input . |
Definition at line 46 of file NEStackLayer.cpp.
References ARM_COMPUTE_LOG_PARAMS, arm_compute::test::validation::info, arm_compute::test::validation::input, and arm_compute::wrap_around().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 71 of file NEStackLayer.cpp.
References Scheduler::get(), and IScheduler::schedule().
|
static |
Static function to check if given info will lead to a valid configuration of NEStackLayerKernel.
[in] | input | The vectors containing all the tensors info with the same shape to stack. Data types supported: All |
[in] | axis | The dimension to stack the tensors along. It must be smaller than the number of input dimensions. Negative values wrap around |
[in] | output | Output tensor info. Data types supported: Same as input . |
Definition at line 56 of file NEStackLayer.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON, ARM_COMPUTE_RETURN_ERROR_ON_NULLPTR, ARM_COMPUTE_RETURN_ON_ERROR, arm_compute::test::validation::input, NEStackLayerKernel::validate(), and arm_compute::wrap_around().