torch.gather(input, dim, index, out=None) → Tensor 官方给的格式import torcha = torch.Tensor([[1,2,3],[4,5,6]])print(a)index_1 = torch.
確定! 回上一頁