Neural Ninjas · Deep Learning Lab

BatchNorm1d vs BatchNorm2d: Bookshelf vs Chessboard

One shelf per channel, one board per channel. Same math, different furniture.

📚 Every shelf averages its own books
(N=4, C=3, L=5) — 4 groups of 5 books per shelf
nn.BatchNorm1d(C) → dim=(0, 2) · 20 books per shelf, one average height per shelf
Raw heights
Idle

Press "Run normalization" to watch it happen.