From ccc9ea03171f7fad9bed0bf05029dcac19435bec Mon Sep 17 00:00:00 2001 From: gzhcv Date: Sun, 31 Jan 2021 19:10:22 +0800 Subject: [PATCH] Fix the bug of step_trace cannot recognize correct fp/bp node in train_eval mode --- mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc b/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc index fc1d512294..eec4d23dfa 100644 --- a/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc +++ b/mindspore/ccsrc/profiler/device/gpu/gpu_profiling_utils.cc @@ -74,10 +74,6 @@ void ProfilingUtils::GetTraceHccl(const std::vector &cnode_exec_order) } void ProfilingUtils::SetTraceFpStart(const std::vector &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);