Get output of hidden3, not hidden4 (fixes #273).

main
Aurélien Geron 2018-08-03 16:15:18 +01:00
parent a82e624171
commit 56be8647f9
1 changed files with 2 additions and 2 deletions

View File

@ -1279,7 +1279,7 @@
"X = tf.get_default_graph().get_tensor_by_name(\"X:0\")\n",
"y = tf.get_default_graph().get_tensor_by_name(\"y:0\")\n",
"\n",
"hidden3 = tf.get_default_graph().get_tensor_by_name(\"dnn/hidden4/Relu:0\")\n",
"hidden3 = tf.get_default_graph().get_tensor_by_name(\"dnn/hidden3/Relu:0\")\n",
"\n",
"new_hidden4 = tf.layers.dense(hidden3, n_hidden4, activation=tf.nn.relu, name=\"new_hidden4\")\n",
"new_logits = tf.layers.dense(new_hidden4, n_outputs, name=\"new_outputs\")\n",
@ -4654,7 +4654,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.5"
},
"nav_menu": {
"height": "360px",