Modify the calculation of reconstruction cost 

Follow the way in RBM calculation of reconstruction cost. Without axis input, T.sum(*) is already a scalar.