torch.unique
torch.unique(input, sorted=True, return_inverse=False, return_counts=False, dim=None) -> Tuple[Tensor, Tensor, Tensor]
Returns the unique elements of the input tensor.
Note:
 This function is different from "torch.unique_consecutive()" in
 the sense that this function also eliminates non-consecutive
 duplicate values.

Note:
 Currently in the CUDA implementation and the CPU implementation
 when dim is specified, *torch.unique* always sort the tensor at
 the beginning regardless of the *sort* argument. Sorting could be
 slow, so if your input tensor is already sorted, it is
 recommended to use "torch.unique_consecutive()" which avoids the
 sorting.

Parameters:
      * input (Tensor) -- the input tensor
  * **sorted** (*bool*) -- Whether to sort the unique elements in
    ascending order before returning as output.

  * **return_inverse** (*bool*) -- Whether to also return the
