BatchConcat
Function Usage
Combines multiple tensors into a batch based on the batch dimension. During the combination, the memory is allocated contiguously.
Prototype
friend APP_ERROR BatchConcat(const std::vector<Tensor> &inputs, Tensor &output)
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
inputs |
Input |
List of tensors to be combined into a batch. |
output |
Output |
Combined tensors in a batch. |
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: Tensor