|
|
|
@@ -85,7 +85,7 @@ graphStatus aclgrphParseONNX(const char *model_file, |
|
|
|
AclGrphParseUtil acl_graph_parse_util; |
|
|
|
std::shared_ptr<domi::ModelParser> model_parser; |
|
|
|
|
|
|
|
if (PrepareBeforeParse(acl_graph_parse_util, parser_params, graph, model_parser) != ge::SUCCESS) { |
|
|
|
if (PrepareBeforeParse(acl_graph_parse_util, parser_params, graph, model_parser) != ge::SUCCESS) { |
|
|
|
GELOGE(ge::FAILED, "prepare before parse failed."); |
|
|
|
return ge::FAILED; |
|
|
|
} |
|
|
|
@@ -99,7 +99,7 @@ graphStatus aclgrphParseONNX(const char *model_file, |
|
|
|
} |
|
|
|
GELOGI("Parser graph %s success.", graph.GetName().c_str()); |
|
|
|
|
|
|
|
if (HandleAfterParse(acl_graph_parse_util, parser_params, graph) != ge::SUCCESS) { |
|
|
|
if (HandleAfterParse(acl_graph_parse_util, parser_params, graph) != ge::SUCCESS) { |
|
|
|
GELOGE(ge::FAILED, "handle after parse failed."); |
|
|
|
return ge::FAILED; |
|
|
|
} |
|
|
|
|