!11907 Fix the bug of gpu step_trace cannot recognize correct fp/bp node in train_eval mode

From: @gzhcv
Reviewed-by: @yelihua,@ouwenchang
Signed-off-by: @ouwenchang
pull/11907/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 4d2e0ea91f

@ -74,10 +74,6 @@ void ProfilingUtils::GetTraceHccl(const std::vector<CNodePtr> &cnode_exec_order)
}
void ProfilingUtils::SetTraceFpStart(const std::vector<CNodePtr> &cnode_exec_order) {
if (!profiling_trace.trace_fp_start.empty()) {
return;
}
const char *trace_fp_start = std::getenv(kFpStartNode);
if (trace_fp_start != nullptr) {
profiling_trace.trace_fp_start = std::string(trace_fp_start);

Loading…
Cancel
Save