aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/autograph/operators/control_flow.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/contrib/autograph/operators/control_flow.py')
-rw-r--r--tensorflow/contrib/autograph/operators/control_flow.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/contrib/autograph/operators/control_flow.py b/tensorflow/contrib/autograph/operators/control_flow.py
index 988df70157..9909e52164 100644
--- a/tensorflow/contrib/autograph/operators/control_flow.py
+++ b/tensorflow/contrib/autograph/operators/control_flow.py
@@ -141,7 +141,7 @@ def _dataset_for_stmt(ds, extra_test, body, init_state):
while_body,
init_state=(epoch_number, iterate) + init_state,
extra_deps=())
- # Dropping the epoch number and iterate because they are not not syntactically
+ # Dropping the epoch number and iterate because they are not syntactically
# visible.
results = results[2:]
@@ -212,12 +212,12 @@ def if_stmt(cond, body, orelse):
Tuple containing the statement outputs.
"""
if tensor_util.is_tensor(cond):
- return _tf_if_stmt(cond, body, orelse)
+ return tf_if_stmt(cond, body, orelse)
else:
return _py_if_stmt(cond, body, orelse)
-def _tf_if_stmt(cond, body, orelse):
+def tf_if_stmt(cond, body, orelse):
"""Overload of if_stmt that stages a TF cond."""
return control_flow_ops.cond(cond, body, orelse)