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/contrib/copy_graph | |
parent | 703fce57eaae725c4ae4b0bd23629c4f04a9de16 (diff) |
Replace usages initialize_all_variables -> global_variables_initializer
Change: 138128703
Diffstat (limited to 'tensorflow/contrib/copy_graph')
-rw-r--r-- | tensorflow/contrib/copy_graph/python/util/copy_test.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/contrib/copy_graph/python/util/copy_test.py b/tensorflow/contrib/copy_graph/python/util/copy_test.py index 0f5a9f04cf..68865fab49 100644 --- a/tensorflow/contrib/copy_graph/python/util/copy_test.py +++ b/tensorflow/contrib/copy_graph/python/util/copy_test.py @@ -36,7 +36,7 @@ class CopyVariablesTest(tf.test.TestCase): #Initialize session sess1 = tf.Session() #Initialize the Variable - tf.initialize_all_variables().run(session=sess1) + tf.global_variables_initializer().run(session=sess1) #Make a copy of some_var in the defsult scope in graph2 copy1 = tf.contrib.copy_graph.copy_variable_to_graph( @@ -51,7 +51,7 @@ class CopyVariablesTest(tf.test.TestCase): #Initialize Session sess2 = tf.Session() #Initialize the Variables - tf.initialize_all_variables().run(session=sess2) + tf.global_variables_initializer().run(session=sess2) #Ensure values in all three variables are the same v1 = some_var.eval(session=sess1) @@ -77,7 +77,7 @@ class CopyOpsTest(tf.test.TestCase): #Initialize session sess1 = tf.Session() #Initialize the Variable - tf.initialize_all_variables().run(session=sess1) + tf.global_variables_initializer().run(session=sess1) #First, initialize a as a Variable in graph2 a1 = tf.contrib.copy_graph.copy_variable_to_graph( @@ -88,7 +88,7 @@ class CopyOpsTest(tf.test.TestCase): #Initialize session sess2 = tf.Session() #Initialize the Variable - tf.initialize_all_variables().run(session=sess2) + tf.global_variables_initializer().run(session=sess2) #Initialize a copy of y in graph2 y1 = tf.contrib.copy_graph.copy_op_to_graph( |