projects
/
platform
/
upstream
/
tensorflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4383f3d
)
Fix docstrings in `scan` (#16432)
author
Taehoon Lee
<me@taehoonlee.com>
Fri, 26 Jan 2018 05:30:55 +0000
(14:30 +0900)
committer
Rasmus Munk Larsen
<rmlarsen@google.com>
Fri, 26 Jan 2018 05:30:55 +0000
(21:30 -0800)
tensorflow/python/ops/functional_ops.py
patch
|
blob
|
history
diff --git
a/tensorflow/python/ops/functional_ops.py
b/tensorflow/python/ops/functional_ops.py
index
7dbccf1
..
ac03d30
100644
(file)
--- a/
tensorflow/python/ops/functional_ops.py
+++ b/
tensorflow/python/ops/functional_ops.py
@@
-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.