Function: repeats the ith element of the tensor for repeats[i] times.
Example: Assume that repeats is ([1, 3]). In this case, the generated tensor is ([0, 1, 1, 1]). The 0th element 1 of repeats indicates that 0 is repeated once. The first element 3 of repeats indicates that 1 is repeated three times.
Each operator has calls. First, aclnnRepeatInterleaveTensorGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnRepeatInterleaveTensor 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:
- aclnnRepeatInterleaveTensor defaults to a deterministic implementation.
- Input shape restriction: repeats can only be a 1D tensor (including the scenario where shape=[0,]).
- Input value range restriction: The value in the repeats tensor must be a natural number.
- Other restrictions:
- The value of outputSize must be equal to the sum of the values of repeats.
- The value of outputSize cannot exceed 2^22.
The following example is for reference only. For details, see .