← all repositories

pytorch/examples

Official PyTorch repository with curated examples covering vision, NLP, reinforcement learning, and generative models.

examples
Not currently ranked — collecting fresh signals.
star history

This repository contains high-quality, minimal-dependency examples demonstrating how to use PyTorch for various machine learning tasks. Examples cover image classification, language modeling with RNNs and transformers, generative adversarial networks, variational autoencoders, neural style transfer, reinforcement learning with actor-critic methods, distributed training, and the C++ frontend. Each example is designed to be short and emulated in existing projects.

Frequently asked

What is pytorch/examples?
Official PyTorch repository with curated examples covering vision, NLP, reinforcement learning, and generative models.
Is examples open source?
Yes — pytorch/examples is open source, released under the BSD-3-Clause license.
What language is examples written in?
pytorch/examples is primarily written in Python.
How popular is examples?
pytorch/examples has 23.9k stars on GitHub.
Where can I find examples?
pytorch/examples is on GitHub at https://github.com/pytorch/examples.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.