昇腾社区首页
中文
注册
开发者
下载

E12029 Invalid_Argument_TensorFlow_Model_Data

Symptom

Failed to find the subgraph library.

Possible Cause

The model to convert contains function subgraphs, but the graph_def_library.pbtxt file is not found.

Solution

  1. 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.
  2. Run the func2graph.py script in the ATC installation directory to save the subgraphs to graph_def_library.pbtxt.