From de16a4f89b618fd705b0b5f4516c600ab1a38504 Mon Sep 17 00:00:00 2001 From: wangxiaotian22 Date: Sat, 23 Jan 2021 14:33:47 +0800 Subject: [PATCH] move end_task after assginadd on iterator_loop case --- ge/graph/build/task_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/graph/build/task_generator.cc b/ge/graph/build/task_generator.cc index bb72fa8a..3d56186a 100755 --- a/ge/graph/build/task_generator.cc +++ b/ge/graph/build/task_generator.cc @@ -681,7 +681,7 @@ Status TaskGenerator::AutoFindBpOpIndex(const ComputeGraphPtr &graph, ProfilingP } } if (graph->GetNeedIteration()) { - if (op_desc->GetName() == NODE_NAME_NET_OUTPUT + '_' + NODE_NAME_STREAM_SWITCH + "_StreamActive") { + if (op_desc->GetName() == NODE_NAME_FLOWCTRL_LOOP_ASSIGNADD) { profiling_point.end_index.insert(current_idx); GELOGI("Iter end name %s, idx %u, from Node_Output_IteratorCtrl_StreamSwitch_StreamActive", op_desc->GetName().c_str(), current_idx);