If you like ascii art:
-
"VALID"
= without padding:inputs: 1 2 3 4 5 6 7 8 9 10 11 (12 13) |________________| dropped |_________________|
-
"SAME"
= with zero padding:pad| |pad inputs: 0 |1 2 3 4 5 6 7 8 9 10 11 12 13|0 0 |________________| |_________________| |________________|
- With
"SAME"
padding, if you use a stride of 1, the layer's outputs will have the same spatial dimensions as its inputs. - With
"VALID"
padding, there's no "made-up" padding inputs. The layer only uses valid input data.
参考自