Understanding tied weights


I was coding some models using pytorch and came across this


I did searched for the documentation on pytorch, but didn’t found anything.
Can you please let me know what does this line of code does.
If there is any brief resource, can you please point me out?

Thank you!

set_tied is not a built-in nn.Module method and defined in the repository here.