Appropriate ways to share weights between modules

What are the appropriate ways to share/tie parameters between modules?
For example, I have two Sequential containers containing multiple modules and I want to share/tie some of the module weights. I can’t reuse module in my case (e.g., sharing weights of Embedding with Linear)

Does setting one module weights to another do the job like this example below?