Difference between 'SAME' and 'VALID' padding
Difference between 'SAME' and 'VALID' padding
'SAME' padding 和 'VALID' padding 的区别
If you like ascii art:
![](https://img2018.cnblogs.com/blog/1470684/201812/1470684-20181228172251930-1401607553.png)
In this example:
- Input width = 13
- Filter width = 6
- Stride = 5
Notes:
"VALID"
only ever drops the right-most columns (or bottom-most rows)."SAME"
tries to pad evenly left and right, but if the amount of columns to be added is odd, it will add the extra column to the right, as is the case in this example (the same logic applies vertically: there may be an extra row of zeros at the bottom).
欢迎转载,转载请保留页面地址。帮助到你的请点个推荐。