Hi, all:
I found the built-in python sum function can deal with Tensor data type. That’s weird!
Moreover, the result of sum(a, b) is distinct from sum([a, b]), Could anyone give some insight?

In [8]: a
Out[8]: 
tensor([[1., 1., 1.],
        [1., 1., 1.]], device='cuda:0')

In [9]: b
Out[9]: 
tensor([[1., 1., 1.],
        [1., 1., 1.]], device='cuda:0')

In [10]: sum(a,b)
Out[10]: 
tensor([[3., 3., 3.],
        [3., 3., 3.]], device='cuda:0')

In [11]: sum([a,b])
Out[11]: 
tensor([[2., 2., 2.],
        [2., 2., 2.]], device='cuda:0')