Returns the sum of all the elements in the tensor.