BatchStack
Function Usage
Combines tensors with multiple batches into one tensor. Compared with BatchConcat, it extends the tensor dimensions.
Prototype
static APP_ERROR BatchStack(const std::vector<TensorBase> &inputs, TensorBase &output);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
inputs |
Input |
Tensor list. The list size cannot exceed 1024. |
output |
Output |
Tensor object after combination. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: TensorBase