torch.Tensor.index_copy¶ Tensor.index_copy(dim, index, tensor2) → 张量¶ 就地版本的 torch.Tensor.index_copy_()。