第一篇
1、padding的方式:

说明:
1、摘录自http://stackoverflow.com/questions/37674306/what-is-the-difference-between-same-and-valid-padding-in-tf-nn-max-pool-of-t
2、不同的padding方式,VALID是采用丢弃的方式,比如上述的input_width=13,只允许滑动2次,多余的元素全部丢掉
3、SAME的方式,采用的是补全的方式,对于上述的情况,允许滑动3次,但是需要补3个元素,左奇右偶,在左边补一个0,右边补2个0
4、For the SAME padding, the output height and width are computed as:
-
out_height = ceil(float(in_height) / float(strides[
本文详细介绍了TensorFlow中`conv2d`和`max_pool`的方法参数,包括卷积的padding方式、strides计算以及Max Pooling的工作原理。通过实例展示了如何使用`conv2d`进行卷积计算,并探讨了Max Pooling的优缺点。
订阅专栏 解锁全文

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



