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 ff and gg is defined as: (fg)(i,j)=abf(a,b)g(ia,jb)(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)(i, j).

0

1

Updated 2026-05-09

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L