Commit 817da424 authored by Saul Shanabrook's avatar Saul Shanabrook Committed by GitHub

Update Tensorflow example

`initialize_all_variables` is deprecated, although it still works, and `global_variables_initializer` is the replacement.
parent 11be019e
...@@ -27,7 +27,7 @@ import tensorflow as tf ...@@ -27,7 +27,7 @@ import tensorflow as tf
hello = tf.Variable('Hello World!') hello = tf.Variable('Hello World!')
sess = tf.Session() sess = tf.Session()
init = tf.initialize_all_variables() init = tf.global_variables_initializer()
sess.run(init) sess.run(init)
sess.run(hello) sess.run(hello)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment