We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56b3986 commit d93af85Copy full SHA for d93af85
tensorflow_tutorials/2.3 tf 卷积神经网络.py
@@ -1,6 +1,20 @@
1
"""
2
卷积神经网络
3
两个卷积层,两个全连接层
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个分类
18
19
20
import tensorflow as tf
0 commit comments