Fix bug in documentation of tf.while_loop.parallel_iterations
This commit is contained in:
parent
bf6b65c7f2
commit
446ee01189
@ -2398,7 +2398,7 @@ def while_loop_v2(cond,
|
||||
```python
|
||||
i = tf.constant(0)
|
||||
c = lambda i: tf.less(i, 10)
|
||||
b = lambda i: tf.add(i, 1)
|
||||
b = lambda i: (tf.add(i, 1), )
|
||||
r = tf.while_loop(c, b, [i])
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user