aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-02-07 14:31:04 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-07 14:47:55 -0800
commitfcae253c08a9f54d55cfa596402ab53c397089bd (patch)
tree418518ca8a67859aba4a5883f0bb6ab8edd6c358 /tensorflow/g3doc
parentf2068869bdc39fa6b3b8e4462a32e6c58a368aee (diff)
Doc fix for mandelbrot set tutorial
Fixes #7308. complex_abs -> abs and one bit of indentation. Change: 146834910
Diffstat (limited to 'tensorflow/g3doc')
-rwxr-xr-xtensorflow/g3doc/tutorials/mandelbrot/index.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/g3doc/tutorials/mandelbrot/index.md b/tensorflow/g3doc/tutorials/mandelbrot/index.md
index d4a45167cd..791de11667 100755
--- a/tensorflow/g3doc/tutorials/mandelbrot/index.md
+++ b/tensorflow/g3doc/tutorials/mandelbrot/index.md
@@ -49,13 +49,13 @@ For playing around like this, we often use an interactive session, but a regular
session would work as well.
```python
- sess = tf.InteractiveSession()
+sess = tf.InteractiveSession()
```
It's handy that we can freely mix NumPy and TensorFlow.
```python
-# Use NumPy to create a 2D array of complex numbers on [-2,2]x[-2,2]
+# Use NumPy to create a 2D array of complex numbers
Y, X = np.mgrid[-1.3:1.3:0.005, -2:1:0.005]
Z = X+1j*Y
@@ -84,7 +84,7 @@ Now we specify more of the computation...
zs_ = zs*zs + xs
# Have we diverged with this new value?
-not_diverged = tf.complex_abs(zs_) < 4
+not_diverged = tf.abs(zs_) < 4
# Operation to update the zs and the iteration count.
#