add theano computation to RnnModel