torch.Tensor.unique
-
Tensor.unique(sorted=True, return_inverse=False, return_counts=False, dim=None)[source] -
Возвращает уникальные элементы входного тензора.
См.
torch.unique()
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.Tensor.unique.html