import torchtorch.manual_seed(1)logits = torch.rand(3, 10)label_ids ... y = torch.from_numpy(x) indices = torch.argsort(y, dim=1) print(indices) 结果: ...
確定! 回上一頁