What Should I Do If "build_main build graph[infer_graph_info] failed" Is Displayed During Model Conversion When the Quantization Function Is Enabled

Symptom

During model conversion, the quantization function is configured using --compression_optimize_conf. As a result, the model conversion fails, and the following message is displayed:

Possible Causes

The possible cause is that the original model fails to be built.

Solution

Disable quantization and rerun model conversion to locate the root cause. After successful conversion of the original model with quantization disabled, enable quantization again.