BatchConcat
Function Usage
Concatenates multiple tensors into a batch based on the batch dimension. By default, the first dimension of each input tensor is the batch dimension, and the memory is continuous.
Prototype
1 | friend APP_ERROR Tensor::BatchConcat(const std::vector<Tensor> &inputs, Tensor &output); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
inputs |
Input |
List of tensors to be concatenated into a batch. |
output |
Output |
Concatenated tensors in a batch. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |
Parent topic: Tensor