Description: Eliminates all but the first element from every consecutive group of equivalent elements. When dim is not empty, tensors except the first tensor from every consecutive group of equivalent elements are eliminated along the corresponding dimension.
Each operator has calls. First, aclnnUniqueConsecutiveGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnUniqueConsecutive is called to perform computation.
Parameters
[object Object]Returns
[object Object][object Object]: status code. For details, see . The first-phase API implements input parameter verification. The following errors may be thrown:
Parameters
[object Object]
- Deterministic compute:
- aclnnUniqueConsecutive defaults to a deterministic implementation.
The following example is for reference only. For details, see .