-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to share the parameters in nngraph #114
Comments
you use the :share method. See this documentation: https://github.com/torch/nn/blob/master/doc/module.md#sharemlps1s2sn |
I know this method, but in nngraph, if I want to share the parameter between layer1 and layer2,it would say "no share method" |
Have you considered sharing the layer parameters beforehand prior to building your network with nngraph? |
@soumith I know this method, but in nngraph, if I want to share the parameter between layer1 and layer2,it would say "no share method" |
@RuiShu I considered, but if are many gmodules ,I do not know how to assemble them together |
@duanLH I recommend posting a more detailed question on https://groups.google.com/forum/#!forum/torch7; you'll likely find help there. |
@RuiShu thanks~ |
Thanks for your attention
I want to share the parameters in some layers when using the nngraph to construct a net.please help me
The text was updated successfully, but these errors were encountered: