Theano Script for CNN