thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

AI & Machine Learning · Foundational

Tensor

A multi-dimensional array of numbers, the core data structure in deep learning frameworks.

Definition

Scalars are rank-0 tensors, vectors rank-1, matrices rank-2, and images or batches are higher ranks. Frameworks such as PyTorch and TensorFlow perform tensor operations on GPUs, and NVIDIA Tensor Cores accelerate the underlying matrix math.

Example

A batch of 32 RGB images at 224x224 is a tensor of shape (32, 224, 224, 3).

Exam tip

Know that tensor rank equals the number of dimensions and that GPUs accelerate tensor math.

Related terms