!21686 Fix dump logging when dump not enabled

Merge pull request !21686 from sabrinasun_59ee/dev
This commit is contained in:
i-robot 2021-08-12 13:21:05 +00:00 committed by Gitee
commit d701d7a512
1 changed files with 2 additions and 2 deletions

View File

@ -1175,9 +1175,9 @@ void AscendSession::Dump(const std::shared_ptr<KernelGraph> &kernel_graph) const
MS_EXCEPTION_IF_NULL(kernel_graph);
bool finish = E2eDump::DumpData(kernel_graph.get(), rank_id_);
if (finish) {
MS_LOG(DEBUG) << "Finish!";
MS_LOG(DEBUG) << "Dump completed!";
} else {
MS_LOG(ERROR) << "Dump Data failed!";
MS_LOG(DEBUG) << "Dump has not occurred!";
}
}