Thanks for responding.
I implemented the model with conv2d and maxpooing APIs, similar to the Tensorflow implementation here: http://www.wildml.com/2015/12/implementing-a-cnn-for-text-classification-in-tensorflow/ 15