From 40463c84ab92312331159128c2f53f4be863afab Mon Sep 17 00:00:00 2001 From: zhengyuanhua Date: Mon, 18 Jan 2021 16:39:53 +0800 Subject: [PATCH] profiling iter num start with 1 --- ge/hybrid/node_executor/task_context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/hybrid/node_executor/task_context.cc b/ge/hybrid/node_executor/task_context.cc index a95fac13..8b7c623f 100644 --- a/ge/hybrid/node_executor/task_context.cc +++ b/ge/hybrid/node_executor/task_context.cc @@ -530,7 +530,7 @@ Status TaskContext::SaveProfilingTaskDescInfo(uint32_t task_type, uint32_t block tmp_task_desc_info.task_id = task_id; tmp_task_desc_info.stream_id = stream_id; tmp_task_desc_info.shape_type = "dynamic"; - tmp_task_desc_info.cur_iter_num = iteration_; + tmp_task_desc_info.cur_iter_num = iteration_ + 1; task_desc_info.emplace_back(tmp_task_desc_info); }