Learning PyTorch with Examples — PyTorch Tutorials 2.3.0+cu121 documentation
This is one of our older PyTorch tutorials. You can view our latest beginner content in Learn the Basics. This tutorial introduces the fundamental concepts of PyTorch through self-contained examples. At its core, PyTorch provides two main features: An n-dimensional Tensor, similar to numpy but can run on GPUs Automatic differentiation for building and training neural networks We will use a problem of fitting 𝑦 = sin ( 𝑥 ) y=sin(x) with a third order polynomial as our running example. The network will have four parameters, and will be trained with gradient descent to fit random data by minimizing the Euclidean distance between the network output and the true output. NOTE You can browse the individual examples at the end of this page. Table of Contents Tensors Warm-up: numpy PyTorch: Tensors Autograd PyTorch: Tensors and autograd PyTorch: Defining new autograd functions nn module PyTorch: nn PyTorch: optim PyTorch: Custom nn Modules PyTorch: Control Flow + Weight Sharing Examples Te
Learning PyTorch with Examples # Created On: Mar 24, 2017 | Last Updated: Sep 29, 2025 | Last Verified: Nov 05, 2024 Author : Justin Johnson Note This is one of our older PyTorch tutorials. You can view our latest beginner content in Learn the Basics . This tutorial introduces the fundamental concepts of PyTorch through self-contained examples. At its core, PyTorch provides two main features: An n-dimensional Tensor, similar to numpy but can run on GPUs Automatic differentiation for building and training neural networks We will use a problem of fitting \(y=\sin(x)\) with a third order polynomi
saved by
related reading
- PyTorch in One Hour: From Tensors to Training Neural Networks on Multiple GPUssebastianraschka.com
- Building Models with PyTorch — PyTorch Tutorials 2.13.0+cu130 documentationpytorch.org
- Tensors — PyTorch Tutorials 2.12.0+cu130 documentationpytorch.org
- Tensors — PyTorch Tutorials 2.13.0+cu130 documentationdocs.pytorch.org
- PyTorch internals : ezyang's blogblog.ezyang.com
- Making Deep Learning go Brrrr From First Principleshorace.io
- Taking PyTorch for Granted | whnrehiew.github.io
- Chapter 0: Fundamentals - ARENAlearn.arena.education
- torch.Tensor — PyTorch 2.12 documentationdocs.pytorch.org
- Transformers from scratch | peterbloem.nlpeterbloem.nl
- python - Understanding `torch.nn.Parameter()` - Stack Overflowstackoverflow.com
- Get Startedpytorch.org