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/10/22 19:52:05 UTC

[GitHub] safrooze commented on issue #12805: Make output of multi input hybrid block unique

safrooze commented on issue #12805: Make output of multi input hybrid block unique
URL: https://github.com/apache/incubator-mxnet/pull/12805#issuecomment-431909303
 
 
   Change the code above to
   ```
   class MyBlock(mx.gluon.HybridBlock):
       def __init__(self):
           super().__init__()
           with self.name_scope():
               self.model = mx.gluon.nn.Dense(units=5)
   
       def hybrid_forward(self, F, x, y):
           return self.model(self.model(self.model(x)))
   ```
   and you get these symbol names:
   ```
   data0
   myblock0_dense0_weight
   myblock0_dense0_bias
   myblock0_dense0_data0_fwd
   myblock0_dense0_myblock0_dense0_data0_fwd_fwd
   myblock0_dense0_myblock0_dense0_myblock0_dense0_data0_fwd_fwd_fwd
   ```
   Something doesn't sit right with these names.

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