torch.Tensor.index_put Tensor.index_put(indices, values, accumulate=False) → Tensor Out-place version of .