I have ben struggling on how to share the same weights in two models for a long time.
For example, I have two RNN(or RNNCell) models, i.e. RNN1 and RNN2, and I want to share the weight_hh of these two models, which means that  RNN1.weight_hh_l0 is the same as RNN2.weight_hh_l0. I have different inputs for those two models and I want the shared weight_hh_l0 could be updated by training these two different RNN models at the same time.
How could I do this? Is there any one that could help?
Thank you very much.