diff options
author | Olivia Nordquist <nolivia@google.com> | 2017-09-06 14:29:51 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-09-06 14:34:14 -0700 |
commit | f8d4b5eae59124c9a4b01a4cc1097e1f0006137a (patch) | |
tree | a98c959b859b2c0c02312311544a2eb47ff83379 /tensorflow/c/python_api.cc | |
parent | d528a52baa3562cbf952a5be71ebdc38e1e5c551 (diff) |
detecting cycles when users add a control edge to a graph
PiperOrigin-RevId: 167773598
Diffstat (limited to 'tensorflow/c/python_api.cc')
-rw-r--r-- | tensorflow/c/python_api.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/c/python_api.cc b/tensorflow/c/python_api.cc index adca6c7625..b8d36b8947 100644 --- a/tensorflow/c/python_api.cc +++ b/tensorflow/c/python_api.cc @@ -20,7 +20,6 @@ limitations under the License. namespace tensorflow { void AddControlInput(TF_Graph* graph, TF_Operation* op, TF_Operation* input) { - // TODO(skyewm): make sure cycles are prevented mutex_lock l(graph->mu); graph->graph.AddControlEdge(&input->node, &op->node); } |