10/26
Part 2 of 4 · BroadcastingWatch
Watch · 3 min
Karpathy asks whether a 27 by 27 table can be divided by a 27 by 1 column. He lines the shapes up on the right, checks each pair, and the 1 stretches to 27. PyTorch broadcasts by the same rule as NumPy.
The spelled-out intro to language modeling: building makemore · Andrej Karpathy · Sep 2022YouTube