torch.Tensor.scatter_reduce_
- Tensor.scatter_reduce_(dim, index, src, reduce, *, include_self=True) → Tensor
Reduces all values from the
tensor to the indices specified in the tensor in the tensor using the applied reduction defined via the argument (, , , , ). For each value in , it is reduced to an index in which is specified by its index in for and by the corresponding value in for . If , the values in the tensor are included in the reduction.