Tensor Broadcasting

Core AI Intuitions

A glimpse of Tensor Broadcasting

You have two rows of measurements, with three features in each row. You want to add 10 to the first feature, 20 to the second and 30 to the third, for both rows.

Write the measurements as an array with shape (2, 3). Shape lists the length of each axis: two rows, three columns. In machine-learning code, arrays like these are called tensors.

Continue learning

Pro unlocks guided learning, complete notes, practical walkthroughs, exercises, and every AI Research lesson.