Browse Source

Add aclgrphInferShapeAndType compute graph topologic sorting

tags/v1.1.0
dongduo 3 years ago
parent
commit
7d1fb50a5e
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      ge/ir_build/ge_ir_build.cc

+ 7
- 1
ge/ir_build/ge_ir_build.cc View File

@@ -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;


Loading…
Cancel
Save