未验证 提交 2a8839b0 编写于 作者: R Ruibiao Chen 提交者: GitHub

Fix event info bug in StreamAnalyzer (#56982)

上级 80563b05
...@@ -414,7 +414,6 @@ void analyse_event_info_for_two_instructions<Instruction>( ...@@ -414,7 +414,6 @@ void analyse_event_info_for_two_instructions<Instruction>(
if (has_data_dependency<Instruction, std::string>( if (has_data_dependency<Instruction, std::string>(
instructions[cur_instr_id], instructions[next_instr_id]) || instructions[cur_instr_id], instructions[next_instr_id]) ||
!run_type_info[next_instr_id][DownstreamRunType::kEventRun].empty() ||
instructions[next_instr_id]->OpBase()->Type() == "depend") { instructions[next_instr_id]->OpBase()->Type() == "depend") {
waiter_instr_ids->insert(next_instr_id); waiter_instr_ids->insert(next_instr_id);
return; return;
...@@ -474,7 +473,6 @@ void analyse_event_info_for_two_instructions< ...@@ -474,7 +473,6 @@ void analyse_event_info_for_two_instructions<
if (has_data_dependency<paddle::framework::InstructionBase, ir::Value>( if (has_data_dependency<paddle::framework::InstructionBase, ir::Value>(
instructions[cur_instr_id], instructions[next_instr_id]) || instructions[cur_instr_id], instructions[next_instr_id]) ||
!run_type_info[next_instr_id][DownstreamRunType::kEventRun].empty() ||
instructions[next_instr_id]->Name() == "pd.depend") { instructions[next_instr_id]->Name() == "pd.depend") {
waiter_instr_ids->insert(next_instr_id); waiter_instr_ids->insert(next_instr_id);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册