Learn Before
Formula
Discrete Two-Dimensional Convolution
For two-dimensional tensors, the mathematical convolution operation is computed as a sum over two sets of indices. Extending the one-dimensional definition, the discrete two-dimensional convolution of functions and is defined as: (f * g)(i, j) = sum_a sum_b f(a, b) g(i-a, j-b) This calculates the overlap between the two functions when one is flipped across both dimensions (using index differences) and shifted by (i, j).
0
1
Updated 2026-05-09
Tags
D2L
Dive into Deep Learning @ D2L