You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to optimize a table of modules together? #152
I'm currently working on a project where there are two modules that need to be optimized. And these two modules are somewhat relative to each other. I'm wondering if it is possible to optimize them together using optim? For example, could I write a feval function whose input is a table of parameters: { paramFromModule1, paramFromModule2 } and returns a table of grads: { gradsFromModule1, gradsFromModule2 }?
Activity
taineleau-zz commentedon Feb 25, 2017
Yes. I guess what you need is the following. x is a table of parameters.
Or you may just put these models under a same custom
nn.Container.squidszyd commentedon Feb 26, 2017
@taineleau Thank you! I've also found that combine_all_parameters could solve my issue.