Example
Example of Equivalence Between Strict Convolution and Cross-Correlation
To illustrate the equivalence between cross-correlation and strict convolution in deep learning, consider a convolutional layer that learns a kernel matrix when performing cross-correlation to produce a specific output. If the same layer were to perform a strict mathematical convolution under identical conditions, it would learn a modified kernel . This newly learned kernel is simply the original kernel flipped both horizontally and vertically. Consequently, performing a strict convolution with the input and yields the exact same output as performing cross-correlation with the input and .
0
1
Updated 2026-05-12
Tags
D2L
Dive into Deep Learning @ D2L