Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.35 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.35 KB

PyTorch Tutorial

This repository provides concise and annotated examples for learning PyTorch.

Adapted from the great but seemingly unmaintained PyTorch Tutorial by Yunjey Choi.

Table of Contents

Basics

Usage

git clone https://github.com/bpesquet/pytorch-tutorial.git
cd pytorch-tutorial
python {path to Python example file}

Development notes

Toolchain

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.

Useful commands

# 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] .

License

Creative Commons for textual content and MIT for code.

Copyright © 2025-present Baptiste Pesquet.