Skip to content

Commit

Permalink
debugging pending_count_
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeVasilakopoulos committed Jun 23, 2024
1 parent 148299d commit 1e4e9d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow/core/common_runtime/graph_constructor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ Status GraphConstructor::InitFromEdges() {
}
}
if (has_loop_back_edge) {
pending_count = num_control_edges + 1;
pending_count = std::min(num_control_edges + 1, node_def.input_size());
}
} else if (IsReturningNode(node_def)) {
int num_control_edges = 0;
Expand All @@ -849,7 +849,7 @@ Status GraphConstructor::InitFromEdges() {
num_control_edges++;
}
}
pending_count = num_control_edges + 1;
pending_count = std::min(num_control_edges + 1, node_def.input_size());
}
for (int i = 0; i < node_def.input_size(); ++i) {
StringPiece input_name = node_def.input(i);
Expand Down

0 comments on commit 1e4e9d9

Please sign in to comment.