Concept

Odd-Sized Convolution Kernels

Convolutional neural networks frequently use kernels with odd spatial dimensions, such as 1imes11 imes 1, 3imes33 imes 3, 5imes55 imes 5, or 7imes77 imes 7. 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 (pextrmh/2p_ extrm{h}/2 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 (i,j)(i, j) is computed by a cross-correlation window centered exactly on the input element at (i,j)(i, j).

0

1

Updated 2026-05-12

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L