Remove unnecessary variable initialization, fixes #283

main
Aurélien Geron 2018-08-20 18:55:24 +02:00
parent bb1cc02950
commit 1c09995f1b
1 changed files with 0 additions and 6 deletions

View File

@ -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",