MCPcopy Create free account
hub / github.com/chinawithfrank/ChatBotCourse / conv2d

Function conv2d

digital_recognition_cnn.py:28–29  ·  view source on GitHub ↗
(x, W)

Source from the content-addressed store, hash-verified

26
27# 卷积采用1步长,0边距,保证输入输出大小相同
28def conv2d(x, W):
29 return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME')
30
31# 池化采用2×2模板
32def max_pool_2x2(x):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected