aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/graph/graph.h
diff options
context:
space:
mode:
authorGravatar Yifei Feng <yifeif@google.com>2017-11-22 13:42:21 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-22 13:50:02 -0800
commitb1d8c59e9b014b527fb2fbef9ce9afc14dbc4938 (patch)
treeaf207d5a90f3176bdd3fbffbe1e98258125bf389 /tensorflow/core/graph/graph.h
parente219aeb542779d90a582ffe16f8602cd1b275b22 (diff)
Merge changes from github.
PiperOrigin-RevId: 176695926
Diffstat (limited to 'tensorflow/core/graph/graph.h')
-rw-r--r--tensorflow/core/graph/graph.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/core/graph/graph.h b/tensorflow/core/graph/graph.h
index c5dde722fa..223dd12f8f 100644
--- a/tensorflow/core/graph/graph.h
+++ b/tensorflow/core/graph/graph.h
@@ -451,6 +451,11 @@ class Graph {
// REQUIRES: The edge must exist.
void RemoveEdge(const Edge* edge);
+ // Removes control edge `edge` from the graph. Note that this also updates
+ // the corresponding NodeDef to reflect the change.
+ // REQUIRES: The control edge must exist.
+ void RemoveControlEdge(const Edge* e);
+
// Updates the input to a node. The existing edge to `dst` is removed and an
// edge from `new_src` to `dst` is created. The NodeDef associated with `dst`
// is also updated.