" VALID"填充错误的算法

时间:2017-05-15 00:15:08

标签: tensorflow

我一直在使用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有一个明显错误的计算吗?

0 个答案:

没有答案