【发布时间】:2017-12-12 13:54:24
【问题描述】:
weights = {
# 5x5 conv, 1 input, 32 outputs
'wc1': tf.Variable(tf.random_normal([5, 5, 1, 32])),
# 5x5 conv, 32 inputs, 64 outputs
'wc2': tf.Variable(tf.random_normal([5, 5, 32, 64])),
# fully connected, 7*7*64 inputs, 1024 outputs
'wd1': tf.Variable(tf.random_normal([7*7*64, 1024])),
# 1024 inputs, 10 outputs (class prediction)
'out': tf.Variable(tf.random_normal([1024, num_classes]))
}
我的问题是: 如何计算特征/通道输出的数量,在这种情况下,第一层为 32,第二层为 64,第三层为 1024?如果我在 CNN 中添加多于或少于 32、64、1024 的数字会产生什么影响?
【问题讨论】:
标签: machine-learning tensorflow deep-learning conv-neural-network convolution