Glossary · Phase 2 · Math, when you need it
Tensor
A grid of numbers with any number of directions: a vector is 1-D, a matrix is 2-D, a stack of matrices is 3-D.
Try it now
A table is a tensor of shape (2, 3). Sum along each axis and see which dimension disappears.
Learn it properly
Tensors · Arrays with more axes: batches, sequences, heads. About 25 minutes.
Other terms from the same lesson
- shape: The size of an array along each direction, like (3, 4) for 3 rows and 4 columns.
Never trained an AI?
Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.