Tensorflow padding的SAME和VALID

参考链接:https://blog.csdn.net/wuzqChom/article/details/74785643

W为输入的size,F为filter的size,S为步长,⌈⌉为向上取整符号

VALUE:
n e w H e i g h t = n e w W i d t h = W F + 1 S newHeight = newWidth =⌈\frac{W-F+1}{S}⌉
SAME:
n e w H e i g h t = n e w W i d t h = W S newHeight = newWidth =⌈\frac{W}{S}⌉

发布了90 篇原创文章 · 获赞 9 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/wangwenjie1997/article/details/105136423