correct the stochastic case check
Merge branch 'master' of github.com:torch/torch7-distro