Symptom
Failed to find the subgraph library. As the model contains function operators, run the [func2graph.py] script in the ATC installation directory to save the subgraphs to [graph_def_library.pbtxt].
Possible Cause
If the model to convert contains function subgraphs, the [graph_def_library.pbtxt] file is required.
Solution
- To use function subgraphs to convert a TensorFlow model, place the subgraph .proto description file in the same directory as the model file and name it [graph_def_library.pbtxt].
- Run the [func2graph.py] script in the ATC installation directory to save the subgraphs to [graph_def_library.pbtxt].