Skip to main content

PyTorch Tutorial for Deep Learning in Python

Learn PyTorch by building a satellite land-use classifier in Python: tensors, datasets and data loaders, neural networks, autograd, training loops, TensorBoard, convolutional networks, transfer learning, GPU speed-ups and torch.export. Beginner-friendly parts, all on your own computer.

1 part · 38 min read

Start with Part 1
  1. Install PyTorch and Create Your First Tensors on the GPU

    · 38 min read

    Start a deep-learning project in Python: install PyTorch 2.15 and torchvision with uv on Python 3.15, create your first tensors, move them to the GPU and back, see the mixed-device error, and add a command that picks the GPU or the CPU.