index.rst 1.68 KB
Newer Older
1 2 3 4 5
.. inspection/index: 

Visualization Tools
###################

6 7 8 9 10
nGraph provides serialization and deserialization facilities, along with the 
ability to create image formats or a PDF. 

When visualization is enabled, a ``dot`` file gets generated, along with a 
``png``. The default can be adjusted by setting the 
11 12
``NGRAPH_VISUALIZE_TREE_OUTPUT_FORMAT`` flag to another format, like PDF. 

13 14 15 16 17 18 19 20
.. note:: Large graphs are usually not legible with formats like PDF.  

Large graphs may require additional work to get into a human-readable format. 
On the back end, very long edges will need to be cut to make (for example) a 
hard-to-render training graph tractable. This can be a tedious process, so 
incorporating the help of a rendering engine or third-party tool like those 
listed below may be useful.  

21

22 23 24 25 26 27 28 29
.. Additional scripts
.. ==================

.. We have provided a script to convert the `most common default output`_, nGraph 
.. ``JSON``, to an output that is better able to handle detailed graphs; however, 
.. we do not offer user support for this script. The script will produce a 
.. ``.graphml`` file that can be imported and inspected with third-party tools 
.. like: 
30 31 32 33 34 35 36 37

#. `Gephi`_

#. `Cytoscape`_

.. #. `Netron`_ support tentatively planned to come soon


38 39 40 41 42 43
.. _CMakeLists.txt: https:github.com/NervanaSystems/ngraph/blob/master/CMakeLists.txt
.. _most common default output: https:github.com/NervanaSystems/ngraph/contrib/tools/graphml/ngraph_json_to_graphml.py
.. _visualize_tree.cpp: https://github.com/NervanaSystems/ngraph/blob/master/src/ngraph/pass/visualize_tree.cpp
.. _Netron: https:github.com/lutzroeder/netron/blob/master/README.md
.. _Gephi: https:gephi.org
.. _Cytoscape: https:cytoscape.org