[object Object][object Object][object Object]undefined
[object Object]
  • Description: Removes duplicates from the input tensor [object Object] along a given dim.
  • Example: Assume that [object Object] is[[212][121][212]]\begin{bmatrix} \begin{bmatrix} 2 & 1 & 2 \end{bmatrix}\\ \begin{bmatrix} 1 & 2 & 1 \end{bmatrix}\\ \begin{bmatrix} 2 & 1 & 2 \end{bmatrix}\\ \end{bmatrix} and [object Object] is 0, then [object Object] is:[[212][121]]\begin{bmatrix} \begin{bmatrix} 2 & 1 & 2 \end{bmatrix}\\ \begin{bmatrix} 1 & 2 & 1 \end{bmatrix}\\ \end{bmatrix} [object Object] is:[010]\begin{bmatrix} 0 & 1 & 0 \end{bmatrix} [object Object] is:[12]\begin{bmatrix} 1 & 2 \end{bmatrix}
[object Object]

Each operator has calls. First, aclnnUniqueDimGetWorkspaceSize is called to obtain the input parameters and to compute the workspace size required for computation. Then, aclnnUniqueDim is called to perform computation.

[object Object]
[object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic compute:
    • aclnnUniqueDim defaults to a deterministic implementation.
  • Performance:
    • On A2, A3, and training products, when the dimension value of self on dim exceeds 200 million, the performance is poor or even the running times out.
[object Object]

The following example is for reference only. For details, see .

[object Object]