When I run tensorflow
training (with custom defined graph, closed source), it outputs the warning:
2018-10-03 14:29:24.352895: E tensorflow/core/grappler/optimizers/dependency_optimizer.cc:666] Iteration = 0, topological sort failed with message: The graph couldn't be sorted in topological order.
What does it mean? What could likely cause this problem and how to avoid it?
Update: For the record, in my case, tensorflow
still works correctly despite this warning. So I think it just means there are more loops in the computation graph than what tensorflow
expects, not necessarily infinite loop. I fixed this by avoid using manual loop in code, but instead using tensor manipulation (stack, concat, slice, reshape...
)