Learn Before
Concept
Odd-Sized Convolution Kernels
Convolutional neural networks frequently use kernels with odd spatial dimensions, such as , , , or . Choosing odd kernel sizes provides the advantage of preserving dimensionality while allowing for symmetric padding—adding the exact same number of rows on the top and bottom ( rows on each side), and the same number of columns on the left and right. This symmetric padding also ensures a clerical benefit: for any input tensor, the output element at index is computed by a cross-correlation window centered exactly on the input element at .
0
1
Updated 2026-05-12
Tags
D2L
Dive into Deep Learning @ D2L