Skip to content

Commit d93af85

Browse files
add 网络结构描述的注释
1 parent 56b3986 commit d93af85

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tensorflow_tutorials/2.3 tf 卷积神经网络.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
"""
22
卷积神经网络
33
两个卷积层,两个全连接层
4+
5+
输入 [sample * 28 * 28 * 1 ] (灰度图)
6+
7+
[ 28 * 28 *1 ] --> (32个卷积核,每个大小5*5*1,sample方式卷积) --> [ 28 * 28 * 32] --> (池化 2*2 ,步长2)--> [14 *14 *32]
8+
9+
[ 14 * 14 *32] --> (64个卷积核,每个大小 5 * 5 * 32,sample方式卷积) --> [14 * 14 *64] --> (池化 2*2 ,步长2)--> [7 * 7 *64]
10+
11+
[ 7 * 7 * 64] --> reshape 成列向量 --> (7 * 7 * 64)
12+
13+
[sample * (7*7*64)] 全连接层1 weights:[7*7*64 , 1024] --> [sample * 1024]
14+
15+
[sample * 1024] 全连接层2 weights:[1024,10] --> [sample *10]
16+
17+
输出:10个分类
418
"""
519

620
import tensorflow as tf

0 commit comments

Comments
 (0)