diff options
author | 2016-01-15 11:03:01 -0800 | |
---|---|---|
committer | 2016-01-15 12:39:38 -0800 | |
commit | 409c68eb2531f450680233c437b219237b0609e2 (patch) | |
tree | 1fe6b5a25d5d6dd662f2eb43bc15157dd00fcf60 /tensorflow/g3doc/tutorials/mandelbrot/index.md | |
parent | 42d705408beb0d7a45798fa22df5684296716a38 (diff) |
Fix the split-on-underscore and show-data-download-links options.
The regressions were introduced in cl/110462065
Also fix the tf-tensorboard/demo/index.html file (minor)
Change: 112265591
Diffstat (limited to 'tensorflow/g3doc/tutorials/mandelbrot/index.md')
-rwxr-xr-x | tensorflow/g3doc/tutorials/mandelbrot/index.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/g3doc/tutorials/mandelbrot/index.md b/tensorflow/g3doc/tutorials/mandelbrot/index.md index d88e7b5502..f4aa8fe6ca 100755 --- a/tensorflow/g3doc/tutorials/mandelbrot/index.md +++ b/tensorflow/g3doc/tutorials/mandelbrot/index.md @@ -64,9 +64,9 @@ Z = X+1j*Y Now we define and initialize TensorFlow tensors. ```python -xs = tf.constant(Z.astype("complex64")) +xs = tf.constant(Z.astype(np.complex64)) zs = tf.Variable(xs) -ns = tf.Variable(tf.zeros_like(xs, "float32")) +ns = tf.Variable(tf.zeros_like(xs, tf.float32)) ``` TensorFlow requires that you explicitly initialize variables before using them. @@ -94,7 +94,7 @@ not_diverged = tf.complex_abs(zs_) < 4 # step = tf.group( zs.assign(zs_), - ns.assign_add(tf.cast(not_diverged, "float32")) + ns.assign_add(tf.cast(not_diverged, tf.float32)) ) ``` |