Hi,
I am reproducing  a torch model to a pytorch model. but  i  have difficulties in  how  to  share the parameters and the gradParameters  in two layers.
Here is torch scipt,
1.png818×369 41.8 KB
.
Thanks for any help.