Learn Before
Example

Example of Two-Dimensional Cross-Correlation with Stride

Consider a two-dimensional cross-correlation operation using a vertical stride of 3 and a horizontal stride of 2. When computing the output, the convolution window slides down three rows for each vertical step and two columns to the right for each horizontal step. For example, two output elements might be computed as 0×0+0×1+1×2+2×3=80 \times 0 + 0 \times 1 + 1 \times 2 + 2 \times 3 = 8 and 0×0+6×1+0×2+0×3=60 \times 0 + 6 \times 1 + 0 \times 2 + 0 \times 3 = 6. If the window slides further and the remaining input elements cannot completely fill the convolution window, no output is generated for that position unless extra padding is added.

Image 0

0

1

Updated 2026-06-27

Tags

Data Science

D2L

Dive into Deep Learning @ D2L