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.
To receive additional messages about applied graph modifications, rebuild the nGraph library with the -DNGRAPH_DEBUG_ENABLE=ON
option.
To enable serialization and deserialization of the nGraph function to a JSON file, rebuild the nGraph library with the -DNGRAPH_JSON_ENABLE=ON
option. To serialize or deserialize the nGraph function, call the nGraph function as follows:
To visualize the nGraph function to the xDot format or to an image file, use the ngraph::pass::VisualizeTree
graph transformation pass:
To serialize the CNNNetwork to the Inference Engine Intermediate Representation (IR) format, use the CNNNetwork::serialize(...)
method:
NOTE: CNNNetwork created from the nGraph function might differ from the original nGraph function because the Inference Engine applies some graph transformation.