On this page
torch.Tensor.unique
Tensor.unique(sorted=True, return_inverse=False, return_counts=False, dim=None)
[source]-
Returns the unique elements of the input tensor.
See
torch.unique()
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.Tensor.unique.html