Skip to content

Concise and annotated examples for learning the basics of PyTorch

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
CODE_LICENSE
Notifications You must be signed in to change notification settings

bpesquet/pytorch-tutorial

Repository files navigation

(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.

About

Concise and annotated examples for learning the basics of PyTorch

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
CODE_LICENSE

Stars

Watchers

Forks

Releases

No releases published

Languages