Use 2 "tricks" to speed up Theano version.
Merge pull request #1 from nouiz/master

Use 2 "tricks" to speed up Theano version.