Address deprecation warnings.
@@ -162,7 +162,7 @@ correct_pred = tf.equal(tf.argmax(pred,1), tf.argmax(y,1))
accuracy = tf.reduce_mean(tf.cast(correct_pred, tf.float32))
# Initializing the variables
-init = tf.initialize_all_variables()
+init = tf.global_variables_initializer()
# Launch the graph
with tf.Session() as sess:
@@ -88,7 +88,7 @@ with tf.name_scope('Accuracy'):
acc = tf.reduce_mean(tf.cast(acc, tf.float32))
# Create a summary to monitor cost tensor
tf.summary.scalar("loss", loss)
@@ -49,7 +49,7 @@ with tf.name_scope('Accuracy'):
tf.summary.scalar("loss", cost)
@@ -175,4 +175,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
-}
+}