liuzh91 commented on issue #18372:
URL: 
https://github.com/apache/incubator-mxnet/issues/18372#issuecomment-631980267


   > Why only share the output parameters to test weight sharing of two resnets?
   
   What I want to do is I need estimator support `net` for training and 
`val_net` for validation on dev dataset. These two networks could be   
   
   - Exactly same. i.e., With the same architecture and network weights as in 
the first test case 
   - Partially same. i.e. With the same architecture and share only a subset of 
network parameters as in the second resnet case 
   - just identical in the architecture but with totally different weights.
   - In some extreme case, their architecture may also be different. Then you 
may need to modify `evaluate_batch`
   
   My first test case already cover the first case, so I use a partially weight 
shared resnet to test the second case. The third the fourth cases are trivial. 
So I didn't write new test case for that. But what do you mean by 
`val_net.output` does not share the same weight with `net.output`?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to