We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bd62df + a369945 commit 92d60f9Copy full SHA for 92d60f9
examples/addition.py
@@ -5,7 +5,7 @@
5
y = tf.placeholder(tf.int32, name = 'y')
6
z = tf.add(x, y, name = 'z')
7
8
-tf.initialize_variables(tf.all_variables(), name = 'init')
+tf.variables_initializer(tf.global_variables(), name = 'init')
9
10
definition = tf.Session().graph_def
11
directory = 'examples/addition-model'
examples/regression.py
@@ -12,7 +12,7 @@
12
optimizer = tf.train.GradientDescentOptimizer(0.5)
13
train = optimizer.minimize(loss, name='train')
14
15
-init = tf.initialize_variables(tf.all_variables(), name='init')
+init = tf.variables_initializer(tf.global_variables(), name='init')
16
17
18
directory = 'examples/regression-model'
0 commit comments