From e0e205ea2d91541918c6b26b244604f4e7c7a98b Mon Sep 17 00:00:00 2001 From: wangchaochaohu Date: Thu, 28 Nov 2019 11:33:33 +0800 Subject: [PATCH] fix the profiling bug test=develop (#21396) --- paddle/fluid/platform/profiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/platform/profiler.cc b/paddle/fluid/platform/profiler.cc index 6d055a44210..124e0da571d 100644 --- a/paddle/fluid/platform/profiler.cc +++ b/paddle/fluid/platform/profiler.cc @@ -498,7 +498,7 @@ void ParseEvents(const std::vector> &events, event_idx[event_name] = event_items.size(); EventItem event_item = {event_name, 1, event_time, event_time, event_time, event_time, - gpu_time, cpu_time, 0.}; + cpu_time, gpu_time, 0.}; event_items.push_back(event_item); } else { int index = event_idx[event_name]; -- GitLab