Conversion Failure Due to Output Nodes Specified by out_nodes Not Found
Symptom
Model conversion fails, and log message "can not find node: *" or "node * not found" is printed, as shown in Figure 3-5.
Possible Cause
The possible causes are as follows:
- During model conversion, the out_nodes argument specifies the output nodes (operator names). However, the specified output nodes do not exist in the graph.
- The graph has the specified output nodes. However, the nodes are fused during conversion.
Solution
To rectify the fault, perform the following steps:
- Check whether the output nodes specified by out_nodes exist in the graph.
If not, specify the correct nodes.
- If the specified output nodes exist in the graph, but the error message indicating that the nodes cannot be found is still displayed, perform the following operations to check whether the nodes are fused during model conversion:
Convert without using the out_nodes argument, and check whether the nodes exist in the final build graph. If not, the nodes have been fused, and arguments of out_nodes need to be modified.