Browse Source

Add aclgrphInferShapeAndType compute graph topologic sorting

pull/439/head
dongduo taoxiangdong 5 years ago
parent
commit
b3d8b650c0
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