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/04/05 05:10:21 UTC

[GitHub] reminisce commented on issue #10416: mx.symbol.LeakyRelu could not be visualized

reminisce commented on issue #10416: mx.symbol.LeakyRelu could not be visualized 
URL: https://github.com/apache/incubator-mxnet/issues/10416#issuecomment-378821909
 
 
   Probably because you didn't specify the params of LeakyReLU and all the params use the default values. In this case, there is no `attrs` json key in the symbol output format for this operator. It's a bug of `plot_network` not handling this situation well.
   
   We encourage you to try this [MXBoard](https://github.com/awslabs/mxboard) which is feature richer and handles this situation correctly.
   ```python
   import mxnet as mx
   from mxboard import SummaryWriter
   
   
   data = mx.sym.Variable('data')
   lr = mx.sym.LeakyReLU(data)
   with SummaryWriter(logdir='./logs') as sw:
       sw.add_graph(lr)
   ```
   ![image](https://user-images.githubusercontent.com/4978794/38348125-dbbba7f4-3854-11e8-9b3b-87728299305c.png)
   
   

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