Remove unnecessary variable initialization, fixes #283
parent
bb1cc02950
commit
1c09995f1b
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue