Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Data handling0/7
  • Matrices0/5
  • Derivatives0/5
  • Probability0/6
⋆\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
AAAMaths, module 11: Matrices, lesson 5 of 5

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.

7 minute readOne thing to try6 questionsFree

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • 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.

More in Matrices

  1. 1Matrices move space
  2. 2Matrix multiplication
  3. 3Layers and non-linearity
  4. 4Transpose, identity and inverse
  5. 5Tensors and shapes