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.
1 parent 3133823 commit 6985952Copy full SHA for 6985952
examples/3_NeuralNetworks/autoencoder.py
@@ -17,7 +17,7 @@
17
18
# Import MNIST data
19
from tensorflow.examples.tutorials.mnist import input_data
20
-mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
+mnist = input_data.read_data_sets("MNIST_data", one_hot=True)
21
22
# Parameters
23
learning_rate = 0.01
@@ -83,7 +83,7 @@ def decoder(x):
83
optimizer = tf.train.RMSPropOptimizer(learning_rate).minimize(cost)
84
85
# Initializing the variables
86
-init = tf.initialize_all_variables()
+init = tf.global_variables_initializer()
87
88
# Launch the graph
89
with tf.Session() as sess:
notebooks/3_NeuralNetworks/autoencoder.ipynb
0 commit comments