Formula
Formula for Convolution Output Size with Stride and Padding
When applying a convolution with kernel height and width , total padding height and width , and strides and , the shape of the output generated from an input of height and width is:
This formula simplifies under certain conditions. If padding is set to and , the output shape reduces to . Furthermore, if the input dimensions are exactly divisible by the strides, the output shape simplifies to .
0
3
Updated 2026-05-12
Contributors are:
Who are from:
References
Tags
Data Science
D2L
Dive into Deep Learning @ D2L