Skip to main content
Loading page…
Python Mastery
Chapter 45
Lesson 1 of 4
Tensors & Autograd
Contents
Notes
Tutor
Concept
Installing PyTorch
Loading activity…
Previous
1 / 10
Continue
Contents
Notes
Discussion
Tutor
53 min
10 activities
0 of 10 done
In this lesson
1
Installing PyTorch
2
What Is a Tensor?
3
Tensors vs NumPy — Interoperability
4
GPU and Device Placement
5
Autograd: Automatic Differentiation
6
Gradient Descent from Scratch with Autograd
7
Check: Why Must We Call .grad.zero_()?
8
Autograd Vocabulary
9
Tensor Device Rule
10
Senior Lab: Build, Run, and Review Evidence
Objectives
Create and manipulate PyTorch tensors using common factory functions and operations
Explain what autograd does and trace how gradients flow through a computational graph
Move tensors between CPU and GPU and understand why device placement matters
Call .backward() on a scalar loss and read .grad on leaf tensors
Further reading
PyTorch tutorials
PyTorch API reference
Chapter 45 · Deep Learning with PyTorch
Tensors & Autograd
Building Neural Networks
The Training Loop
Deep Learning in Practice
Previous: Evaluation & Tuning
Next: Building Neural Networks