Rate this Page

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.

Accepts both sym_sum([a, b, c]) and sym_sum(a, b, c).