aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/tfprof
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/contrib/tfprof
parent703fce57eaae725c4ae4b0bd23629c4f04a9de16 (diff)
Replace usages initialize_all_variables -> global_variables_initializer
Change: 138128703
Diffstat (limited to 'tensorflow/contrib/tfprof')
-rw-r--r--tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py b/tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py
index 9988392acd..c1c4f0921c 100644
--- a/tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py
+++ b/tensorflow/contrib/tfprof/python/tools/tfprof/model_analyzer_test.py
@@ -63,7 +63,7 @@ class PrintModelAnalysisTest(tf.test.TestCase):
with tf.Session() as sess, tf.device('/cpu:0'):
x = self._BuildSmallModel()
- sess.run(tf.initialize_all_variables())
+ sess.run(tf.global_variables_initializer())
run_meta = tf.RunMetadata()
_ = sess.run(x,
options=tf.RunOptions(trace_level=tf.RunOptions.FULL_TRACE),