Files
openvino/docs/IE_DG/Graph_debug_capabilities.md
Alina Alborova 9ba4db7eae [Cherrypick] Remove the deprecation notice (#2408)
* cherry-pick 1/2

* Removed deprecation notice
2020-09-30 20:32:25 +03:00

1.0 KiB

Graph Debug Capabilities

Inference Engine supports two different objects for a graph representation: the nGraph function and CNNNetwork. Both representations provide an API to get detailed information about the graph structure.

nGraph Function

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

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

@snippet openvino/docs/snippets/Graph_debug_capabilities0.cpp part0

CNNNetwork

To serialize the CNNNetwork to the Inference Engine Intermediate Representation (IR) format, use the CNNNetwork::serialize(...) method:

@snippet openvino/docs/snippets/Graph_debug_capabilities1.cpp part1

Note

: CNNNetwork created from the nGraph function might differ from the original nGraph function because the Inference Engine applies some graph transformation.