01🔷Tensors — The Foundation
0/11 lessonsShape, dtype, device, stride. The four numbers you'll check ten thousand times.
Everything in PyTorch is a tensor — model weights, input batches, gradients, loss values, even your learning rate schedule. Master tensors and the rest of the framework starts to feel like syntax sugar over them.
Lesson list (11)
- 01What Tensors Actually Are~12 min · tensor, ndarray, shape
- 02Creating Tensors~15 min · factory, zeros, randn, arange
- 03Shape, Dtype, Device — The Three Numbers~12 min · dtype, device, shape, metadata
- 04Indexing and Slicing~14 min · indexing, slicing, fancy, boolean
- 05Reshape, View, Permute, and the Contiguous Trap~14 min · reshape, view, permute, contiguous, stride
- 06Math: Element-wise, Matmul, and Broadcasting~15 min · matmul, broadcasting, reduction
- 07In-place Operations and the Trailing Underscore~10 min · inplace, memory, autograd
- 08PyTorch ↔ NumPy (and the GPU caveat)~10 min · numpy, interop, memory-sharing
- 09CPU, CUDA, MPS — Devices and Movement~14 min · device, cuda, mps, apple-silicon
- 10requires_grad — The Gateway to Autograd~10 min · autograd, requires_grad, graph
- 11Storage, Stride, and Reading Memory Maps~12 min · memory, stride, storage, contiguous