The 4D weight tensor: Cout × Cin × K × K, drawn as a grid of kernels

A convolution layer’s weights are one small kernel for every pair of an output channel and an input channel. Point at any output pixel to see which inputs and which kernels make it, and the numbers adding up.

Input channels, the kernel grid, biases and output channels of one convolution layer Along the top, the input's channels. Below them, a grid of small kernels: one row per output channel, one column per input channel, each column sitting under the channel it reads. Each row ends in that output channel's bias and then its output map. For the chosen output pixel, the patch it reads is outlined in every input channel, its row of kernels is highlighted with each kernel's dot product written underneath, and the sum plus the bias gives the output value.
input channels Cin output channels Cout kernel K
presets draw activations as