Skip to content
Snippets Groups Projects
Commit cc384697 authored by lixinqi's avatar lixinqi
Browse files

fix an input critical section bug

parent 96ed7c70
No related branches found
No related tags found
No related merge requests found
......@@ -202,7 +202,11 @@ void ForEachInputCriticalSectionOpNodes(
for (OperatorConf::OpTypeCase op_type_case :
{OperatorConf::kVariableConf, OperatorConf::kInputConf}) {
if (op_type_case2op_nodes[op_type_case].empty()) { continue; }
Handler(op_type_case2op_nodes[op_type_case], GetOpNames(op_type_case2op_nodes[op_type_case]));
HashSet<const OpNode*> op_nodes = op_type_case2op_nodes[op_type_case];
for (const OpNode* op_node : op_type_case2op_nodes[op_type_case]) {
op_node->ForEachNodeOnOutEdge([&](OpNode* out_node) { op_nodes.insert(out_node); });
}
Handler(op_nodes, GetOpNames(op_type_case2op_nodes[op_type_case]));
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment