PyTorch Basics PyTorch fundamentals — tensor operations, automatic differentiation, gradient descent, and a 2-layer neural network trained on MNIST.