torch.Tensor.scatter Tensor.scatter(dim, index, src) → Tensor Out-of-place version of torch.Tensor.scatter_()