Skip to content

Commit 1859af2

Browse files
committed
rearrange flatten layer
1 parent 490b33f commit 1859af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LeNet-Lab-Solution.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@
197197
"\n",
198198
" # SOLUTION: Flatten Layer.\n",
199199
" fc1 = flatten(conv2)\n",
200+
" fc1_shape = (fc1.get_shape().as_list()[-1], 120)\n",
200201
" \n",
201202
" # SOLUTION: Fully Connected Layer 1. Input = 5x5x16. Output = 120.\n",
202-
" fc1_shape = (fc1.get_shape().as_list()[-1], 120)\n",
203203
" fc1_W = tf.Variable(tf.truncated_normal(shape=(fc1_shape)))\n",
204204
" fc1_b = tf.Variable(tf.zeros(120))\n",
205205
" fc1 = tf.matmul(fc1, fc1_W) + fc1_b\n",

0 commit comments

Comments
 (0)