aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/graph
diff options
context:
space:
mode:
authorGravatar Sanjoy Das <sanjoy@google.com>2018-07-18 15:23:40 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-18 15:32:28 -0700
commitc80f1493222720c2601c7d68f0ec0dd236ceb621 (patch)
tree0507551d1bc05a1b862bbf197a110ff466e9dbb4 /tensorflow/core/graph
parente3006b1d706fb171525cdd5cfe3a2305d6a5d879 (diff)
Add some LOGging when we detect nodes in a cycle
PiperOrigin-RevId: 205146924
Diffstat (limited to 'tensorflow/core/graph')
-rw-r--r--tensorflow/core/graph/graph_constructor.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tensorflow/core/graph/graph_constructor.cc b/tensorflow/core/graph/graph_constructor.cc
index add26f3b71..8c73f8f712 100644
--- a/tensorflow/core/graph/graph_constructor.cc
+++ b/tensorflow/core/graph/graph_constructor.cc
@@ -1042,6 +1042,14 @@ Status GraphConstructor::Convert() {
}
if (processed < node_defs_.size()) {
+ LOG(WARNING) << "IN " << __func__ << (node_defs_.size() - processed)
+ << " NODES IN A CYCLE";
+ for (int64 i = 0; i < node_defs_.size(); i++) {
+ if (pending_count_[i] != 0) {
+ LOG(WARNING) << "PENDING: " << SummarizeNodeDef(*node_defs_[i])
+ << "WITH PENDING COUNT = " << pending_count_[i];
+ }
+ }
return errors::InvalidArgument(node_defs_.size() - processed,
" nodes in a cycle");
}