delallea/Theano — comment on commit fda86e28616c2238aede3720ca0d258c754095fd
File: theano/tensor/basic.py line 2690
By nouiz:

I think this is wrong that we use the float64 during the summation. use [u]int64 for discrete type in the sum() function. Why it do differently in the mean() function?. I think we should do the same. Using float64 help to prevent overflow as told in the comments down, but this create underflow. Also, numpy