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 K\mathbf{K} 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 K\mathbf{K}'. This newly learned kernel K\mathbf{K}' is simply the original kernel K\mathbf{K} flipped both horizontally and vertically. Consequently, performing a strict convolution with the input and K\mathbf{K}' yields the exact same output as performing cross-correlation with the input and K\mathbf{K}.

0

1

Updated 2026-05-12

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L