Fix docstrings in `scan` (#16432)
authorTaehoon Lee <me@taehoonlee.com>
Fri, 26 Jan 2018 05:30:55 +0000 (14:30 +0900)
committerRasmus Munk Larsen <rmlarsen@google.com>
Fri, 26 Jan 2018 05:30:55 +0000 (21:30 -0800)
tensorflow/python/ops/functional_ops.py

index 7dbccf1..ac03d30 100644 (file)
@@ -458,7 +458,7 @@ def scan(fn, elems, initializer=None, parallel_iterations=10, back_prop=True,
 
   For example, if `elems` is `(t1, [t2, t3])` and `initializer` is
   `[i1, i2]` then an appropriate signature for `fn` in `python2` is:
-  `fn = lambda (acc_p1, acc_p2), (t1 [t2, t3]):` and `fn` must return a list,
+  `fn = lambda (acc_p1, acc_p2), (t1, [t2, t3]):` and `fn` must return a list,
   `[acc_n1, acc_n2]`.  An alternative correct signature for `fn`, and the
    one that works in `python3`, is:
   `fn = lambda a, t:`, where `a` and `t` correspond to the input tuples.