You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/08/19 18:41:11 UTC

[GitHub] edmBernard opened a new issue #7530: Network with shared layer

edmBernard opened a new issue #7530: Network with shared layer
URL: https://github.com/apache/incubator-mxnet/issues/7530
 
 
   I try to make 2 networks with shared layer something like that :
   ```
                                                /-->  FC3_1  --> softmax1 
   input  --> FC1 --> ACT1  --> FC2 --> ACT2   /
                                               \   
                                                \-->  FC3_2  --> softmax2
   ```
   But I want to be able to train each branch with a different data iterator. So I can't use the method used here for [triplet loss](https://github.com/xlvector/learning-dl/blob/master/mxnet/triple-loss/triplet_loss.py)
   Why I need this structure : I have two data base with the same kind of input but different results. And I hope this kind of structure can reduce global model memory size.
   
   from this comment https://github.com/apache/incubator-mxnet/issues/6998#issuecomment-320524117, I try to use `shared_module` arguments in `mx.mod.bind`.
   I was able to use shared_module for a full clone https://github.com/edmBernard/mxnet_example_shared_weight/blob/master/demo_shared_full_net.py
   
   But when I try to add specialized part with this code : https://github.com/edmBernard/mxnet_example_shared_weight/blob/master/demo_shared_partial_with_super_symbol_v2.py
   I got this error after first fit : 
   `ValueError: Find name "fc3_2_bias" that is not in the arguments`
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services