GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FaceMachine/tutorials

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

142 Commits
142 Commits

Folders and files

NameName
Last commit message
Last commit date
_static
_static
 
 
advanced_source
advanced_source
 
 
beginner_source
beginner_source
 
 
intermediate_source
intermediate_source
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 
conf.py
conf.py
 
 
custom_directives.py
custom_directives.py
 
 
index.rst
index.rst
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

PyTorch Tutorials

All the tutorials are now presented as sphinx style documentation at:

http://pytorch.org/tutorials

Contributing

We use sphinx-gallery's notebook styled examples to create the tutorials. Syntax is very simple. In essence, you write a slightly well formatted python file and it shows up as documentation page.

Here's how to create a new tutorial:

  1. Create a notebook styled python file. If you want it executed while inserted into documentation, save the file with suffix tutorial so that file name is your_tutorial.py.
  2. Put it in one of the beginner_source, intermediate_source, advanced_source based on the level.
  3. Include it in the right TOC tree at index.rst
  4. Create a thumbnail in the index file using a command like .. galleryitem:: beginner/your_tutorial.py. (This is a custom directive. See custom_directives.py for more info.)

In case you prefer to write your tutorial in jupyter, you can use this script to convert the notebook to python file. After conversion and addition to the project, please make sure the sections headings etc are in logical order.

Building

  • Start with installing torch and torchvision. Install other requirements using pip install -r requirements.txt
  • Then you can build using make docs. This will download the data, execute the tutorials and build the documentation to docs/ directory. However, this will take about 30-60 min based on your system.
  • You can skip the execution by running make html-noplot to build html documentation to _build/html. This way, you can quickly preview your tutorial.

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.