W3cubDocs

/PyTorch 2.9

torch.sym_sum

torch.sym_sum(args) [source]

N-ary add which is faster to compute for long lists than iterated binary addition. Only does something special for integers.

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.sym_sum.html