在下面找到答案,使用几种pytorch 方法( torch.eq() 、 torch.unique() 、 torch.sort() 等)以输出形状为 (len(idx), len(idx)) 的紧凑切片张量.
確定! 回上一頁