Sharing parameters between two instances of rnn

Hi all,

I am trying create two rnn models with shared parameters between them (being more specific, I need that both models has the same x2h and h2h matrices). Also, I need to optimize them jointly, so when the matrix is updated for one is updated for both.

It is possible to do so with the nn.RNN model?