# Tensor

> A block of numbers. A photo is one, with height, width and colour.

**Field:** General Knowledge  
**Category:** Math & Statistics  
**Also known as:** Tensor (Machine Learning)

## Think of it like

Think of it like a pile of grids. Each one sits on the next, like pages in a book.

## Definition

A tensor is a block of numbers that can stretch in any number of directions. A single number has none, a vector has one, and a matrix has two. A colour photo is a tensor with three: height, width and colour. In AI, data moves from step to step as tensors. The list of its sizes, such as 200 by 300 by 3, is called its shape.

## Example

Lucy's photo is 200 pixels high and 300 wide, with 3 colour values for each pixel. As a tensor, that is 200 by 300 by 3, or 180,000 numbers.

## Why it matters

AI tools pass all their data around as tensors. Reading the shape tells you what the data is.

## Common mistake

Getting the shape out of order. A tensor of 3 by 200 by 300 holds the same numbers but means something else to the model.

## Three principles

- **Any number of directions.** 0, 1, 2, 3 or more.
- **Has a shape.** Like 200 by 300 by 3.
- **How AI moves data.** Between every step.

## Related terms

- [Vector](https://learn.benibix.com/term/general/vector)
- [Matrix](https://learn.benibix.com/term/general/matrix)
- [Tensor Processing Unit (TPU)](https://learn.benibix.com/term/infrastructure/tensor-processing-unit)

![Three shapes of numbers. A vector is one row of numbers. A matrix is a grid of rows and columns. A tensor is a stack of grids, like pages.](https://learn.benibix.com/diagrams/math-vector-matrix-tensor.svg)

---

Source: https://learn.benibix.com/term/general/tensor
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
