Function: Repeats each element in the tensor for the number of times specified by the repeats parameter along the specified dimension.
Example: Assume that the input tensor is ([[a, b], [c, d], [e, f]]). repeats is 2, and dim is 0. In this case, the generated tensor is [ [a, b], [a, b], [c, d], [c, d], [e, f], [e, f]]. In the dimension with dim = 0, a and b are repeated twice, c and d are repeated twice, and e and f are repeated twice. The following condition must be met during computation: outputSize = Size of the dim dimension of self × Value of repeats.
Each operator has calls. First, aclnnRepeatInterleaveIntWithDimGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnRepeatInterleaveIntWithDim is called to perform computation.
Parameters:
[object Object]Returns:
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown:
[object Object]
- Deterministic compute:
- aclnnRepeatInterleaveIntWithDim defaults to a deterministic implementation.
- Other restrictions: During computation, the following requirement must be met: outputSize = size of the dimension of self x value of repeats.
The following example is for reference only. For details, see .