From 1c09995f1bcbbfa2f43dd0c05a3fb603c7812cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Mon, 20 Aug 2018 18:55:24 +0200 Subject: [PATCH] Remove unnecessary variable initialization, fixes #283 --- 11_deep_learning.ipynb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/11_deep_learning.ipynb b/11_deep_learning.ipynb index 8f83e95..eecfa1a 100644 --- a/11_deep_learning.ipynb +++ b/11_deep_learning.ipynb @@ -3599,9 +3599,6 @@ "with tf.Session() as sess:\n", " init.run()\n", " restore_saver.restore(sess, \"./my_best_mnist_model_0_to_4\")\n", - " for var in output_layer_vars:\n", - " var.initializer.run()\n", - "\n", " t0 = time.time()\n", " \n", " for epoch in range(n_epochs):\n", @@ -3693,9 +3690,6 @@ "with tf.Session() as sess:\n", " init.run()\n", " restore_saver.restore(sess, \"./my_best_mnist_model_0_to_4\")\n", - " for var in output_layer_vars:\n", - " var.initializer.run()\n", - "\n", " t0 = time.time()\n", " \n", " hidden5_train = hidden5_out.eval(feed_dict={X: X_train2, y: y_train2})\n",