This repository provides concise and annotated examples for learning PyTorch.
Adapted from the great but seemingly unmaintained PyTorch Tutorial by Yunjey Choi.
- Fundamentals
- Linear Regression
- ... (more to come)
git clone https://github.com/bpesquet/pytorch-tutorial.git
cd pytorch-tutorial
python {path to Python example file}
This project is built with the following software:
- Poetry for dependency management;
- Black for code formatting;
- Pylint to detect mistakes in the code;
- pytest for testing the code;
- Marp for showcasing Markdown files as slideshows during labs.
# Reformat all Python files
black .
# Check the code for mistakes
pylint tutorials
# Run all code examples as unit tests
# The -s flag prints code output
pytest [-s] .
Creative Commons for textual content and MIT for code.
Copyright © 2025-present Baptiste Pesquet.