Hi gentlemen. If you want to control the size of the output of any convolution operation, you can follow the arithmetic here http://deeplearning.net/software/theano_versions/dev/tutorial/conv_arithmetic.html 59.