how to share the parameters in nngraph
duanLH opened this issue · comments
Thanks for your attention
I want to share the parameters in some layers when using the nngraph to construct a net.please help me
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.