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/12/27 20:30:26 UTC

[GitHub] Ishitori commented on issue #13616: SymbolBlock doesn't print anything

Ishitori commented on issue #13616: SymbolBlock doesn't print anything
URL: https://github.com/apache/incubator-mxnet/issues/13616#issuecomment-450225823
 
 
   I confirm this behavior, and here is the minimal reproducible example:
   
   ```
   import mxnet as mx
   from mxnet.gluon.nn import HybridSequential, Dense
   
   model = HybridSequential()
   model.add(Dense(units=10))
   
   model.initialize()
   model.hybridize()
   
   model(mx.random.uniform(shape=(10, 100)))
   model.export("./model")
   
   block = mx.gluon.nn.SymbolBlock.imports('model-symbol.json', ['data'], 'model-0000.params')
   print(block)
   ```
   
   Result that is printed on the screen looks like:
   
   ```
   SymbolBlock(
   
   )
   ```
   
   Funny that both pure Gluon and pure Symbol models are still printing something. For Gluon model I would receive expected output:
   
   ```
   HybridSequential(
     (0): Dense(100 -> 10, linear)
   )
   ```
   
   For same model using Symbolic API I receive only the name of the last layer (not very useful, but still it is something):
   
   ```
   <Symbol fc1>
   ```
   
   I would mark this issue as a bug.

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