Function: Flattens the tensor self and repeats each element for the number of times specified by repeats.
Example: Assume that the input tensor is ([[a, b], [c, d], [e, f]]), and the value of repeats is 2. In this case, the generated tensor is ([a, a, b, b, c, c, d, d, e, e, f, f]). After the tensor is flattened, the input is converted into ([a, b, c, d, e, f]). Each element in the tensor is repeated based on the number of times specified by repeats, that is, each element is repeated twice.
Each operator has calls. First, aclnnRepeatInterleaveIntGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnRepeatInterleaveInt 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:
- aclnnRepeatInterleaveInt defaults to a deterministic implementation.
- Other restrictions: The value of outputSize must be equal to the value of repeats multiplied by the number of elements.
The following example is for reference only. For details, see .