torch / nngraph

Graph Computation for nn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to share the parameters in nngraph

duanLH opened this issue · comments

commented

Thanks for your attention
I want to share the parameters in some layers when using the nngraph to construct a net.please help me

commented

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?

commented

@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"

commented

@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.

commented

@RuiShu thanks~

@duanLH I was trying to find a solution for another problem I have and I hit your thread. I suggest you take a look at this post regarding my issues with parameter sharing in Torch using nngraph. Hope this helps!