Learn Before
Example

Example of Two-Dimensional Cross-Correlation with Stride

Consider a two-dimensional cross-correlation operation using a vertical stride of 33 and a horizontal stride of 22. 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, the first two output elements of the first column and row might be computed as 0imes0+0imes1+1imes2+2imes3=80 imes0+0 imes1+1 imes2+2 imes3=8 and 0imes0+6imes1+0imes2+0imes3=60 imes0+6 imes1+0 imes2+0 imes3=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-05-12

Tags

Data Science

D2L

Dive into Deep Learning @ D2L