A same convolution is a type of convolution where the output matrix is of the same dimension as the input matrix.
For a input matrix and a filter matrix , the output of the convolution is of dimension where represents the stride length and represents the padding.
In a same convolution:
- is typically set to
- is set to
- is an odd number
The result is that is padded to be and becomes – the same as the original dimensions of .