Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Tensor

Also: tensors

In plain words

A grid of numbers (a table, or a stack of tables). Everything inside a model is stored and calculated as tensors.

The fuller definition

A tensor is a numerical array with a defined shape. Vectors, matrices, and higher-dimensional arrays are tensors used to represent data and model calculations.

A small neural-network schematic
Input valuesLearned transformationsOutputs

Lines represent computational connections with learned values. This tiny diagram illustrates a neural network; a transformer or mixture-of-experts model has additional structures not shown here.

A concrete example

A table of token vectors can have one dimension for token positions and another for embedding values.

The distinction that matters

A tensor is a data structure, not a separate intelligent component.

Related terms

Where it is taught

What actually happens when you ask AI a question?

Source and further reading

Google · Machine Learning Glossary

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC