aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/get_started/basic_usage.md
diff options
context:
space:
mode:
authorGravatar Illia Polosukhin <ipolosukhin@google.com>2016-11-03 14:46:06 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-11-03 16:09:01 -0700
commitcbd3cacfb73bbea912b9d01c2540187684f751a7 (patch)
treec2c22af2d05583491b1370dcabdb2e83cb61e2ee /tensorflow/g3doc/get_started/basic_usage.md
parent703fce57eaae725c4ae4b0bd23629c4f04a9de16 (diff)
Replace usages initialize_all_variables -> global_variables_initializer
Change: 138128703
Diffstat (limited to 'tensorflow/g3doc/get_started/basic_usage.md')
-rw-r--r--tensorflow/g3doc/get_started/basic_usage.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/g3doc/get_started/basic_usage.md b/tensorflow/g3doc/get_started/basic_usage.md
index 1603df9335..ae18d9738a 100644
--- a/tensorflow/g3doc/get_started/basic_usage.md
+++ b/tensorflow/g3doc/get_started/basic_usage.md
@@ -236,7 +236,7 @@ update = tf.assign(state, new_value)
# Variables must be initialized by running an `init` Op after having
# launched the graph. We first have to add the `init` Op to the graph.
-init_op = tf.initialize_all_variables()
+init_op = tf.global_variables_initializer()
# Launch the graph and run the ops.
with tf.Session() as sess: