torch.Tensor.index_fill Tensor.index_fill(dim, index, value) → Tensor torch.Tensor.index_fill_() 的非原地版本。