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 2018/08/04 05:06:08 UTC

[GitHub] huyangc opened a new issue #12030: What happen when I group two same model together and train it?

huyangc opened a new issue #12030: What happen when I group two same model together and train it?
URL: https://github.com/apache/incubator-mxnet/issues/12030
 
 
   For example:
   ```
   softmax1 = resnet_50()
   softmax2 = resnet_50()
   out = mx.sym.Group([softmax1, softmax2])
   model = mx.module.Module(symbol=out, context=ctx, data_names=['data1', 'data2'], label_names=['softmax_label1','softmax_label2'])
   train_dataiter = get_dataiter() #will produce the DataBatch with [('data1',[N, 3, 224,224]), ('data2',[N,3,224,224])
   
   model.fit(train_dataiter, ......)
   ```
   My code is something like above. Both resnet 50 is initialized by the same initializer. However, the output of these two softmaxs are different in the begining, Something likes 27.x vs 21.x
   
   It is very strange I think.

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