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