Tensorflow的padding方法
The TensorFlow Convolution example gives an overview about the difference between SAME and VALID :
For the SAME padding, the output height and width are computed as:
out_height = ceil(float(in_height) / float(strides[1]))
out_width = ceil(float(in_width) / float(strides[2]))
And
For the VALID padding, the output height and width are computed as:
out_height = ceil(float(in_height - filter_height + 1) / float(strides[1]))
out_width = ceil(float(in_width - filter_width + 1) / float(strides[2]))
本文详细介绍了TensorFlow中两种常用的填充方法SAME与VALID的区别,并给出了计算输出尺寸的具体公式。
825

被折叠的 条评论
为什么被折叠?



