Watch a small tensor stretch and clone itself to match a bigger tensor's shape โ the real rule behind every PyTorch shape mismatch that "just works".
๐ How To Use This Lab
Pick a shape for Tensor A (the small one) and Tensor B (the big one) from the dropdowns.
Press ๐ Broadcast โถ โ Stretchy clones A's cells to fill B's shape, then merges with B, cell by cell.
Watch the result grid build live with real computed sums โ every number is actually added, not scripted.
Try an incompatible pair like (2,3) and (4,3) โ see exactly why PyTorch would throw a shape error.
๐ค STRETCHYI'm ready! Pick two shapes and hit Broadcast โ I'll clone myself to fit.
๐งโ๐ซ PROF. TORCHBroadcasting lets PyTorch add tensors of different shapes without a manual reshape โ as long as the rule holds.