PyTorch basics

A brief introduction to PyTorch

Posted by Gabriele Santin on February 23, 2021

PyTorch basics

The goal of this tutorial is to go through the basic building blocks of PyTorch, in order to have a recap and a common ground in view of the next tutorials.

In particular we cover the following points:
  • Datasets
  • Models
  • Losses
  • Optimizers

We use linear regression as use case since it makes everything very easy to inspect and visualize, but we keep the presentation of the ideas as general as possible.






Download the material of the lecture here.