HaoLiuHust opened a new issue #9962: how to group 2 or more outputs in gluon 
just like sym.Group()
URL: https://github.com/apache/incubator-mxnet/issues/9962
 
 
   ``` 
   def hybrid_forward(self, F, x):
           x = x.astype(np.float32) - 127.5
           x = x * 0.0078125
           fc1 = self.features(x)
           if self.get_feature:
               return fc1
           else:
               # fc1_norm = F.sqrt(F.sum(F.square(fc1), axis=1)).reshape((-1, 
1))
               # fc1_normalize = F.broadcast_div(fc1, fc1_norm+1e-6)
               fc1_norm = F.L2Normalization(fc1, mode="instance")
               return [fc1_norm,self.output(fc1_norm)]
   ```
   for example, I want to group 2 outputs, and then split them in loss, how 
could I do it?  
   @piiswrong 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to