!463 aclgrphInferShapeAndType add Topologicalsorting

From: @dong-duo
Reviewed-by: @xchu42,@ji_chen
Signed-off-by: @ji_chen
pull/463/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 0b391f29fa

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