diff options
Diffstat (limited to 'tensorflow/contrib/graph_editor/reroute.py')
-rw-r--r-- | tensorflow/contrib/graph_editor/reroute.py | 6 |
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() |