!412 Erase the visited attr after the transdata split pass

Merge pull request !412 from YuJianfeng/master
This commit is contained in:
mindspore-ci-bot 2020-04-17 15:54:32 +08:00 committed by Gitee
commit ead22f9150
1 changed files with 1 additions and 1 deletions

View File

@ -114,8 +114,8 @@ void AscendDataLayout(const std::shared_ptr<session::KernelGraph> &kernel_graph)
data_layout_pm->AddPass(std::make_shared<CommonSubexpressionElimination>());
data_layout_pm->AddPass(std::make_shared<EliminateRedundantOp>());
data_layout_pm->AddPass(std::make_shared<OptimizeDependence>());
data_layout_pm->AddPass(std::make_shared<EraseVisitAttr>());
data_layout_pm->AddPass(std::make_shared<TransDataSplit>());
data_layout_pm->AddPass(std::make_shared<EraseVisitAttr>());
optimizer->AddPassManager(data_layout_pm);
(void)optimizer->Optimize(kernel_graph);
kernel_graph->SetExecOrderByDefault();