Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Tensor

What is tensor?

An array of numbers with any number of axes. A vector has one axis, a matrix has two and a colour image has three.

Where it is taught

Tensors and shapes. A vector is a list and a matrix is a grid. Stack grids and you have a tensor. Reading shapes is the everyday working skill of anyone who builds models.

What the lesson leaves you with

  • A tensor is a block of numbers with any number of dimensions. Its shape lists the sizes.
  • The count of numbers is the product of the shape.
  • Layers act on the last dimension. The batch and position dimensions pass through.
Open the lesson

Questions

What is tensor?
An array of numbers with any number of axes. A vector has one axis, a matrix has two and a colour image has three.
Where is tensor used in AI?
A vector is a list and a matrix is a grid. Stack grids and you have a tensor. Reading shapes is the everyday working skill of anyone who builds models.
What is the key idea to remember about tensor?
A tensor is a block of numbers with any number of dimensions. Its shape lists the sizes.
Where can I learn tensor step by step?
In the lesson “Tensors and shapes” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Activation function
  • Bias
  • Determinant
  • Layer
  • Matrix
  • Transpose