You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/11/10 17:33:24 UTC

[GitHub] aidan-plenert-macdonald commented on issue #8591: How do I make a siamese network with pretrained models (esp. keeping the weights the same?)

aidan-plenert-macdonald commented on issue #8591: How do I make a siamese network with pretrained models (esp. keeping the weights the same?)
URL: https://github.com/apache/incubator-mxnet/issues/8591#issuecomment-343536911
 
 
   If you want to share weights across the network, why not just use one copy of the network and run it twice with the inputs?
   
   ```python
   final_net(nd.concat(shared_net(x), shared_net(x)))
   ```
   
   Also, I definitely recommend using Gluon instead of pure MxNet

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