diff options
author | Illia Polosukhin <ipolosukhin@google.com> | 2016-11-03 14:46:06 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-11-03 16:09:01 -0700 |
commit | cbd3cacfb73bbea912b9d01c2540187684f751a7 (patch) | |
tree | c2c22af2d05583491b1370dcabdb2e83cb61e2ee /tensorflow/g3doc/get_started | |
parent | 703fce57eaae725c4ae4b0bd23629c4f04a9de16 (diff) |
Replace usages initialize_all_variables -> global_variables_initializer
Change: 138128703
Diffstat (limited to 'tensorflow/g3doc/get_started')
-rw-r--r-- | tensorflow/g3doc/get_started/basic_usage.md | 2 | ||||
-rw-r--r-- | tensorflow/g3doc/get_started/index.md | 2 |
2 files changed, 2 insertions, 2 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: diff --git a/tensorflow/g3doc/get_started/index.md b/tensorflow/g3doc/get_started/index.md index d8dc20d9d9..61ab03b37b 100644 --- a/tensorflow/g3doc/get_started/index.md +++ b/tensorflow/g3doc/get_started/index.md @@ -30,7 +30,7 @@ optimizer = tf.train.GradientDescentOptimizer(0.5) train = optimizer.minimize(loss) # Before starting, initialize the variables. We will 'run' this first. -init = tf.initialize_all_variables() +init = tf.global_variables_initializer() # Launch the graph. sess = tf.Session() |