AI engineering glossary · Linear algebra

What is tensor?

Tensor: A general array of numbers with any number of axes: a scalar has zero axes, a vector one, a matrix two, and higher-order arrays three or more. Deep learning frameworks store inputs, weights and activations as tensors so operations can run in bulk on GPUs.

Level: beginnerTopic: Linear algebra

Tensor: an example

A batch of 32 colour images of 224 x 224 pixels is a tensor of shape (32, 3, 224, 224).

Related terms

More Linear algebra terms

Where you learn it

Tensor is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.