Sorry I don’t get it. According to the documentation, https://pytorch.org/docs/stable/tensors.html#torch.Tensor.scatter 46, the syntax is
scatter(dim, index, source) → Tensor, so where should I put the Tensor to scatter the values into?