Edit the matrices, adjust stride and padding, and slide the kernel over the input.
Operation:
Convolution mode:
1. Input matrix
Edit values directly. Blue cells show the current window.
๐ต Current kernel window ยท Gray = padded zeros
2. Kernel
Edit the filter weights.
Current calculation
Sum of element-wise products
0
3. Output matrix
Click any output value to inspect its calculation.
Output shape
4. Interactive 3D volume visualization
Drag any volume to rotate all three views. The blue region shows the current sliding kernel window; green marks the selected output voxel. Volumes are shown as stacked depth slices.
Input volume
Kernel volume
Output volume
Multichannel CNN mode: kernel channels always equal input channels. The kernel slides across rows and columns only, and all channel-wise products are summed into one output value. This is standard 2D CNN cross-correlation with multiple input channels.
How convolution works
1. Place the kernel over an input window. 2. Multiply corresponding matrix elements. 3. Sum the products to get one output value. 4. Move the kernel by the chosen stride and repeat.
The input and kernel have the same number of channels. A single filter produces one 2D output map; multiple filters would produce multiple output channels.
1. Input tensor
Edit any number. Blue cells are inside the current pooling window.
๐ต Active window ยท Gray = padding ยท Channels are pooled independently
2. Pooling window
The window contains no trainable weights.
Current calculation
3. Output tensor
Click an output cell to inspect its window.
Output shape
How pooling works
Max pooling selects the largest value in each window. Average pooling takes the arithmetic mean. Unlike convolution, pooling does not multiply by a kernel or sum across channels.
For padded average pooling, this playground excludes padded cells from the denominator (count-exclude-pad). Max pooling treats padded positions as โโ, so they cannot become the maximum. These conventions are common in deep learning frameworks.