Concat
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
x |
|
x |
Function
Preprocesses the data and merges the source operand src to be sorted into the target data concat. After the data is preprocessed, you can sort the data using Sort.
Prototype
1 2 | template <typename T> __aicore__ inline void Concat(LocalTensor<T> &concat, const LocalTensor<T> &src, const LocalTensor<T> &tmp, const int32_t repeatTime) |
Parameters
Parameter |
Description |
|---|---|
T |
Data type of the operand. For the For the For the |
Parameter |
Input/Output |
Description |
|---|---|---|
concat |
Output |
Destination operand. The type is LocalTensor, and the supported TPosition is VECIN, VECCALC, or VECOUT. The start address of the LocalTensor must be 32-byte aligned. |
src |
Input |
Source operand. The type is LocalTensor, and the supported TPosition is VECIN, VECCALC, or VECOUT. The start address of the LocalTensor must be 32-byte aligned. The source operand must have the same data type as the destination operand. |
tmp |
Input |
Temporary space. This parameter is used to store intermediate variables during complex internal computation of the API. The temporary space is provided by developers. For details about how to obtain the size of the temporary space, see GetConcatTmpSize. The data type must be the same as that of the source operand. The type is LocalTensor, and the supported TPosition is VECIN, VECCALC, or VECOUT. The start address of the LocalTensor must be 32-byte aligned. |
repeatTime |
Input |
Number of iteration repeats. The type is int32_t. 16 elements are processed in each iteration, and the next 16 elements are processed in the next iteration. Value range: repeatTime ∈ [0,255] |
Returns
None
Restrictions
- For details about the operand address alignment requirements, see General Address Alignment Restrictions.