You could using numpy.unique instead import torch import numpy as np t = torch.tensor([1.05, 1.05, 2.01, 2.01, 3.9, ...
確定! 回上一頁