Lesson 11 of 145 min

PyTorch tensors and their shapes

A tensor is PyTorch's array, and a layer for pictures reads it as four sides, (batch, channels, height, width), on the CPU or on the GPU.

After this lesson you can move data between NumPy, PyTorch and the GPU, read a shape such as (batch, channels, height, width), and fix a shape error.

Loading the video…

Refreshers

An idea from an earlier lesson shows up here when the video leans on it.

You use this lesson in Lab 5: On your own computer, after Git and GitHub.

Facts last checked on .