diff --git a/ge/ir_build/ge_ir_build.cc b/ge/ir_build/ge_ir_build.cc index 931e964b..74aa6a60 100644 --- a/ge/ir_build/ge_ir_build.cc +++ b/ge/ir_build/ge_ir_build.cc @@ -542,7 +542,13 @@ graphStatus aclgrphInferShapeAndType(ge::Graph &graph) { return GRAPH_PARAM_INVALID; } - auto ret = compute_graph->InferOriginFormat(); + auto ret = compute_graph->TopologicalSorting(); + if(ret != GRAPH_SUCCESS) { + GELOGE(ret, "Acl topo logical sort failed."); + return ret; + } + + ret = compute_graph->InferOriginFormat(); if (ret != GRAPH_SUCCESS) { GELOGE(ret, "Acl InferOriginFormat failed."); return ret;