Skip to content

Commit 9a3a2e9

Browse files
committed
Use frozen_outputs instead of dnn_outputs
1 parent 3e03cb5 commit 9a3a2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

11_deep_learning.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25550,7 +25550,7 @@
2555025550
"dnn_outputs = dnn(X, name=\"DNN_A\")\n",
2555125551
"frozen_outputs = tf.stop_gradient(dnn_outputs)\n",
2555225552
"\n",
25553-
"logits = tf.layers.dense(dnn_outputs, n_outputs, kernel_initializer=he_init)\n",
25553+
"logits = tf.layers.dense(frozen_outputs, n_outputs, kernel_initializer=he_init)\n",
2555425554
"Y_proba = tf.nn.softmax(logits)\n",
2555525555
"\n",
2555625556
"xentropy = tf.nn.sparse_softmax_cross_entropy_with_logits(labels=y, logits=logits)\n",

0 commit comments

Comments
 (0)