Files
openvino/docs/nGraph_DG/nGraph_debug_capabilities.md
Ilya Churaev d502208f6e Remove ngraph options (#9016)
* Renamed options

* Fixed configs

* Renamed unit tests

* Fixed cmake generation

* Fixed comments

* Fixed comments
2021-12-08 08:17:31 +03:00

726 B

nGraph Debug Capabilities

nGraph representation provides an API to get detailed information about the graph structure.

To receive additional messages about applied graph modifications, rebuild the nGraph library with the -DENABLE_OPENVINO_DEBUG=ON option.

To visualize the nGraph function to the xDot format or to an image file, use the ngraph::pass::VisualizeTree graph transformation pass:

#include <ngraph/pass/visualize_tree.hpp>

std::shared_ptr<ngraph::Function> nGraph;
...
ngraph::pass::VisualizeTree("after.png").run_on_function(nGraph);     // Visualize the nGraph function to an image

Note

: Graphviz is required for visualization to image.