2020-10-07 14:49:47 +03:00
|
|
|
# nGraph Debug Capabilities {#openvino_docs_nGraph_DG_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
|
2021-09-20 18:37:32 +03:00
|
|
|
the `-DOPENVINO_DEBUG_ENABLE=ON` option.
|
2020-10-07 14:49:47 +03:00
|
|
|
|
|
|
|
|
To visualize the nGraph function to the xDot format or to an image file, use the
|
|
|
|
|
`ngraph::pass::VisualizeTree` graph transformation pass:
|
|
|
|
|
```cpp
|
|
|
|
|
#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
|
|
|
|
|
```
|