| @@ -138,9 +138,13 @@ graphStatus aclgrphBuildInitialize(std::map<std::string, std::string> global_opt | |||||
| GELOGE(GRAPH_PARAM_INVALID, "Check global options falied!"); | GELOGE(GRAPH_PARAM_INVALID, "Check global options falied!"); | ||||
| return GRAPH_PARAM_INVALID; | return GRAPH_PARAM_INVALID; | ||||
| } | } | ||||
| // print global option map | // print global option map | ||||
| ge::PrintOptionMap(global_options, "global option"); | ge::PrintOptionMap(global_options, "global option"); | ||||
| Impl builder; | |||||
| builder.LoadOpsProto(); | |||||
| std::shared_ptr<ge::GELib> instance_ptr = ge::GELib::GetInstance(); | std::shared_ptr<ge::GELib> instance_ptr = ge::GELib::GetInstance(); | ||||
| if (instance_ptr == nullptr || !instance_ptr->InitFlag()) { | if (instance_ptr == nullptr || !instance_ptr->InitFlag()) { | ||||
| GELOGI("aclgrphInitialize start!"); | GELOGI("aclgrphInitialize start!"); | ||||
| @@ -472,9 +476,6 @@ graphStatus aclgrphGetIRVersion(int *major_version, int *minor_version, int *pat | |||||
| } | } | ||||
| graphStatus aclgrphInferShapeAndType(ge::Graph &graph) { | graphStatus aclgrphInferShapeAndType(ge::Graph &graph) { | ||||
| Impl builder; | |||||
| builder.LoadOpsProto(); | |||||
| auto compute_graph = GraphUtils::GetComputeGraph(graph); | auto compute_graph = GraphUtils::GetComputeGraph(graph); | ||||
| GE_CHECK_NOTNULL(compute_graph); | GE_CHECK_NOTNULL(compute_graph); | ||||