Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 2.44 KB

README.md

File metadata and controls

61 lines (43 loc) · 2.44 KB

(Yet another) PyTorch Tutorial

Dynamic TOML Badge: Python Dynamic TOML Badge: PyTorch Code style: black GitHub Actions Workflow Status

This repository provides concise and annotated examples for learning the basics of PyTorch.

About this project

Table of Contents

Usage

git clone https://github.com/bpesquet/pytorch-tutorial.git
cd pytorch-tutorial
poetry install
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 codebase;
  • pytest for testing examples;
  • a GitHub Action for validating the code upon each push;
  • Marp for showcasing README files as slideshows during lectures or labs.

Useful commands

# Reformat all Python files
black .

# Check the codebase for mistakes
pylint pytorch_tutorial/*

# Run all code examples as unit tests
# The optional -s flag prints code output
pytest [-s]

License

Creative Commons for textual content and MIT for code.

Copyright © 2025-present Baptiste Pesquet.