Watch a PyTorch training step for boda-boda trip times in Kampala. Tensors sit on a device, every operation adds a node to the autograd graph as it runs, and backward() fills each weight's gradient. Then leave the data on the CPU, switch off requires_grad, or forget torch.no_grad() and watch memory climb. This lesson needs JavaScript.