!8869 reorder sub graph optimzier

From: @kisnwang
Reviewed-by: @chujinjin,@jjfeing
Signed-off-by: @jjfeing
This commit is contained in:
mindspore-ci-bot 2020-11-23 10:05:45 +08:00 committed by Gitee
commit c3939e7448
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ void AscendSession::BuildGraphImpl(GraphId graph_id) {
// Reorder optimizer order
auto execution_order = graph->execution_order();
Reorder(&execution_order);
graph->set_execution_order(execution_order);
// Assign streams for control sink and hccl and so on
AssignStream(NOT_NULL(graph));