Padding
Category: Neural Networks & Architectures
The addition of extra values (typically zeros) around the input borders before convolution, controlling output size and preserving edge information.
Full Explanation
Padding adds extra values around the spatial borders of an input before applying a convolution operation. Zero padding (the most common type) adds zeros around the input. "Same" padding adds enough zeros so that the output has the same spatial dimensions as the input, while "valid" padding (no padding) produces smaller outputs. Padding serves two key purposes: it controls the output spatial dimensions and ensures that border pixels are processed by the convolution kernel as many times as center pixels, preventing loss of edge information. Without padding, spatial dimensions would shrink with each convolution layer, limiting network depth. Padding is a standard component of virtually all CNN architectures and is usually handled automatically by specifying the desired padding mode.
Related Terms
More in Neural Networks & Architectures
Explore More
- AI Tools Library — Discover AI tools related to Padding
- AI Education — Courses to learn about Neural Networks & Architectures
- AI News — Latest news and updates