Learn Before
Code
Code Implementation of Stride in Convolution
Deep learning frameworks allow the use of strided convolutions to efficiently downsample input dimensions. By configuring the stride or strides parameter in a two-dimensional convolution layer, the cross-correlation window skips intermediate locations. For example, setting the strides to for both height and width will halve the input's spatial dimensions. Frameworks also support asymmetric strides by passing a tuple; for instance, specifying a stride of will slide the convolution window down by rows and across by columns at each step.
0
1
Updated 2026-05-12
Tags
D2L
Dive into Deep Learning @ D2L