【发布时间】:2017-08-14 17:08:18
【问题描述】:
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, n_classes]))
}
在此代码中,全连接层的输出为 1024,但我无法理解此“1024”是从哪个计算生成的,并且我无法从 tensorflow 文档中找到任何令人满意的答案。以及此输出大小如何影响预测结果. 提前致谢。
【问题讨论】: