torch.Tensor.index_fill¶ Tensor.index_fill(dim, index, value) → Tensor¶ 是 torch.Tensor.index_fill_() 的異地 (Out-of-place) 版本。