Hi,
In master, Tensor and Variable are now the same thing. So the behaviour is the same as what Variable used to be: It will return a Tensor with a single element in it.
In 0.3.1, Tensor sum was returning a python float while a Variable sum was returning another Variable with a single element. This weird behaviour is now fixed in master.