GitPedia

PyTorch Tutorial

Build your neural network easy and fast, 莫烦Python中文教学

From MorvanZhou·Updated June 11, 2026·View on GitHub·

In these tutorials for pyTorch, we will build our first Neural Network and try to build some advanced Neural Network architectures developed recent years. The project is written primarily in Jupyter Notebook, distributed under the MIT License license, first published in 2017. It has gained significant community traction with 8,458 stars and 3,089 forks on GitHub. Key topics include: autoencoder, batch, batch-normalization, classification, cnn.

<p align="center"> <a href="http://pytorch.org/" target="_blank"> <img width="40%" src="logo.png" style="max-width:100%;"> </a> </p> <br>

pyTorch Tutorials

In these tutorials for pyTorch, we will build our first Neural Network and try to build some advanced Neural Network architectures developed recent years.

Thanks for liufuyang's notebook files
which is a great contribution to this tutorial.

For Chinese speakers: All methods mentioned below have their video and text tutorial in Chinese.
Visit 莫烦 Python for more.
You can watch my Youtube channel as well.

Regression

<a href="tutorial-contents/301_regression.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/1-1-2.gif"> </a>

Classification

<a href="tutorial-contents/302_classification.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/1-1-3.gif"> </a>

CNN

<a href="tutorial-contents/401_CNN.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/4-1-2.gif" > </a>

RNN

<a href="tutorial-contents/403_RNN_regressor.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/4-3-1.gif" > </a>

Autoencoder

<a href="tutorial-contents/403_RNN_regressor.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/4-4-1.gif" > </a> <a href="tutorial-contents/403_RNN_regressor.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/4-4-2.gif" > </a>

GAN (Generative Adversarial Nets)

<a href="tutorial-contents/406_GAN.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/4-6-1.gif" > </a>

Dropout

<a href="tutorial-contents/503_dropout.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/5-3-1.gif" > </a>

Batch Normalization

<a href="tutorial-contents/504_batch_normalization.py"> <img class="course-image" src="https://mofanpy.com/static/results/torch/5-4-2.gif" > </a>

Donation

If this does help you, please consider donating to support me for better tutorials. Any contribution is greatly appreciated!

<div > <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=morvanzhou%40gmail%2ecom&amp;lc=C2&amp;item_name=MorvanPython&amp;currency_code=AUD&amp;bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted"> <img style="border-radius: 20px; box-shadow: 0px 0px 10px 1px #888888;" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/silver-pill-paypal-44px.png" alt="Paypal" height="auto" ></a> </div> <div> <a href="https://www.patreon.com/morvan"> <img src="https://mofanpy.com/static/img/support/patreon.jpg" alt="Patreon" height=120></a> </div>

Contributors

Showing top 9 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from MorvanZhou/PyTorch-Tutorial via the GitHub API.Last fetched: 6/13/2026