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 2019/05/18 10:20:35 UTC
[GitHub] [incubator-mxnet] kshitij12345 commented on issue #14698: Support
visualization by op names
kshitij12345 commented on issue #14698: Support visualization by op names
URL: https://github.com/apache/incubator-mxnet/issues/14698#issuecomment-493665894
I was planning to try this one. But I am a bit confused looking at the example output.
Running this,
```python
import mxnet as mx
net = mx.sym.Variable('data')
net = mx.sym.FullyConnected(data=net, name='fc1', num_hidden=128)
net = mx.sym.Activation(data=net, name='relu1', act_type="relu")
net = mx.sym.FullyConnected(data=net, name='fc2', num_hidden=10)
net = mx.sym.SoftmaxOutput(data=net, name='out')
digraph = mx.viz.plot_network(net, shape={'data':(100,200)}, node_attrs={"fixedsize":"false"})
digraph.view()
```
Copied from https://mxnet.incubator.apache.org/api/python/tools/visualization.html#mxnet.visualization.plot_network
The output I get is,
![graph](https://user-images.githubusercontent.com/19503980/57968125-1f57c300-7984-11e9-8a73-3a2b5562c189.png)
which I believe is the expected behaviour.
----------------------------------------------------------------------------------------------
https://github.com/apache/incubator-mxnet/blob/3d6646a4984839a5f37f8fa4f2a66880a303f1a5/python/mxnet/visualization.py#L339-L375
These lines format the label for node as per the Operator Name and its respective information.
Am I understanding anything incorrectly about the expected behaviour?
Thank You.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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