torch.Tensor.scatter_add_
- Tensor.scatter_add_(dim, index, src) → Tensor
Adds all values from the tensor
srcintoselfat the indices specified in thetensor in a similar fashion as . For each value in , it is added to an index in which is specified by its index in for and by the corresponding value in for .