aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/graph_editor
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2017-02-17 17:05:49 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-17 17:23:48 -0800
commit93a975e114ee1c35f01ed3bdd47170e6f7129014 (patch)
treee34255aff698fe6a4a586e7940337fd278947f58 /tensorflow/contrib/graph_editor
parenteb9624017a0040e805fda622a5f9ec6681e24246 (diff)
Merge changes from github.
Change: 147897309
Diffstat (limited to 'tensorflow/contrib/graph_editor')
-rw-r--r--tensorflow/contrib/graph_editor/reroute.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/contrib/graph_editor/reroute.py b/tensorflow/contrib/graph_editor/reroute.py
index c14bcac3be..386ce9eb06 100644
--- a/tensorflow/contrib/graph_editor/reroute.py
+++ b/tensorflow/contrib/graph_editor/reroute.py
@@ -448,7 +448,7 @@ def remove_control_inputs(op, cops):
def add_control_inputs(op, cops):
- """Add the control inputs cops to co.
+ """Add the control inputs cops to op.
Warning: this function is directly manipulating the internals of the tf.Graph.
@@ -464,8 +464,8 @@ def add_control_inputs(op, cops):
cops = _util.make_list_of_op(cops, allow_graph=False)
for cop in cops:
if cop in op.control_inputs:
- raise ValueError("{} is already a control_input of {}".format(op.name,
- cop.name))
+ raise ValueError("{} is already a control_input of {}".format(cop.name,
+ op.name))
# pylint: disable=protected-access
op._control_inputs += cops
op._recompute_node_def()