defining theano variables for SGRNN