我一直在使用TensorFlow测试一些AlexNet CNN,并且在2D卷积算法中遇到了一些不规则性,更准确地说是在 padding 选项中。
TensorFlow使用:
out_height = ceil(float(in_height - filter_height + 1) / float(strides[1]))
而most approaches使用:
out_height = ceil(float(in_height - filter_height) / float(strides[1]) + 1)
在我的情况下,这导致第一个卷积层的输出大小为26x26,它应该是27x27,如所有AlexNet实现中所提到的......你知道为什么TensorFlow有一个明显错误的计算吗?