!8340 reorder for multi target run

From: @kisnwang
Reviewed-by: @jjfeing,@limingqi107
Signed-off-by: @limingqi107
pull/8340/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 80fe6285d6

@ -262,6 +262,9 @@ void AscendSession::BuildGraphImpl(GraphId graph_id) {
}
// adjust execution order because merge child graph and other special operations
AdjustKernel(graph);
// Reorder optimizer order
auto execution_order = graph->execution_order();
Reorder(&execution_order);
// Assign streams for control sink and hccl and so on
AssignStream(NOT_NULL(graph));

Loading…
Cancel
Save