{"id":13415754,"url":"https://github.com/pytorch/tutorials","last_synced_at":"2025-05-13T22:03:25.138Z","repository":{"id":37561591,"uuid":"69709572","full_name":"pytorch/tutorials","owner":"pytorch","description":"PyTorch tutorials.","archived":false,"fork":false,"pushed_at":"2025-05-13T19:00:04.000Z","size":7855672,"stargazers_count":8561,"open_issues_count":163,"forks_count":4154,"subscribers_count":182,"default_branch":"main","last_synced_at":"2025-05-13T19:52:19.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pytorch.org/tutorials/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytorch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-09-30T23:48:36.000Z","updated_at":"2025-05-13T19:50:26.000Z","dependencies_parsed_at":"2025-03-26T17:11:15.348Z","dependency_job_id":"f6ac174a-9118-415a-940c-7a0b7080706d","html_url":"https://github.com/pytorch/tutorials","commit_stats":{"total_commits":2160,"total_committers":708,"mean_commits":"3.0508474576271185","dds":0.9347222222222222,"last_synced_commit":"3ba3a46fc686a05102946d20a159862ee56d2ab9"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Ftutorials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Ftutorials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Ftutorials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytorch%2Ftutorials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytorch","download_url":"https://codeload.github.com/pytorch/tutorials/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036811,"owners_count":22003653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:51.865Z","updated_at":"2025-05-13T22:03:20.128Z","avatar_url":"https://github.com/pytorch.png","language":"Jupyter Notebook","readme":"# PyTorch Tutorials\n\n\nAll the tutorials are now presented as sphinx style documentation at:\n\n## [https://pytorch.org/tutorials](https://pytorch.org/tutorials)\n\n# Asking a question\n\nIf you have a question about a tutorial, post in https://dev-discuss.pytorch.org/ rather than creating an issue in this repo. Your question will be answered much faster on the dev-discuss forum.\n\n# Submitting an issue\n\nYou can submit the following types of issues:\n\n* Feature request - request a new tutorial to be added. Please explain why this tutorial is needed and how it demonstrates PyTorch value.\n* Bug report - report a failure or outdated information in an existing tutorial. When submitting a bug report, please run: `python3 -m torch.utils.collect_env` to get information about your environment and add the output to the bug report.\n\n# Contributing\n\nWe use sphinx-gallery's [notebook styled examples](https://sphinx-gallery.github.io/stable/tutorials/index.html) to create the tutorials. Syntax is very simple. In essence, you write a slightly well formatted Python file and it shows up as an HTML page. In addition, a Jupyter notebook is autogenerated and available to run in Google Colab.\n\nHere is how you can ceate a new tutorial (for a detailed description, see [CONTRIBUTING.md](./CONTRIBUTING.md)):\n\nNOTE: Before submitting a new tutorial, read [PyTorch Tutorial Submission Policy](./tutorial_submission_policy.md).\n\n1. Create a Python file. If you want it executed while inserted into documentation, save the file with the suffix `tutorial` so that the file name is `your_tutorial.py`.\n2. Put it in one of the `beginner_source`, `intermediate_source`, `advanced_source` directory based on the level of difficulty. If it is a recipe, add it to `recipes_source`. For tutorials demonstrating unstable prototype features, add to the `prototype_source`.\n3. For Tutorials (except if it is a prototype feature), include it in the `toctree` directive and create a `customcarditem` in [index.rst](./index.rst).\n4. For Tutorials (except if it is a prototype feature), create a thumbnail in the [index.rst file](https://github.com/pytorch/tutorials/blob/main/index.rst) using a command like `.. customcarditem:: beginner/your_tutorial.html`. For Recipes, create a thumbnail in the [recipes_index.rst](https://github.com/pytorch/tutorials/blob/main/recipes_source/recipes_index.rst)\n\nIf you are starting off with a Jupyter notebook, you can use [this script](https://gist.github.com/chsasank/7218ca16f8d022e02a9c0deb94a310fe) to convert the notebook to Python file. After conversion and addition to the project, please make sure that section headings and other things are in logical order.\n\n## Building locally\n\nThe tutorial build is very large and requires a GPU. If your machine does not have a GPU device, you can preview your HTML build without actually downloading the data and running the tutorial code:\n\n1. Install required dependencies by running: `pip install -r requirements.txt`.\n\n\u003e Typically, you would run either in `conda` or `virtualenv`. If you want to use `virtualenv`, in the root of the repo, run: `virtualenv venv`, then `source venv/bin/activate`.\n\n- If you have a GPU-powered laptop, you can build using `make docs`. This will download the data, execute the tutorials and build the documentation to `docs/` directory. This might take about 60-120 min for systems with GPUs. If you do not have a GPU installed on your system, then see next step.\n- You can skip the computationally intensive graph generation by running `make html-noplot` to build basic html documentation to `_build/html`. This way, you can quickly preview your tutorial.\n\n## Building a single tutorial\n\nYou can build a single tutorial by using the `GALLERY_PATTERN` environment variable. For example to run only `neural_style_transfer_tutorial.py`, run:\n\n```\nGALLERY_PATTERN=\"neural_style_transfer_tutorial.py\" make html\n```\nor\n\n```\nGALLERY_PATTERN=\"neural_style_transfer_tutorial.py\" sphinx-build . _build\n```\n\nThe `GALLERY_PATTERN` variable respects regular expressions.\n\n\n## About contributing to PyTorch Documentation and Tutorials\n* You can find information about contributing to PyTorch documentation in the\nPyTorch Repo [README.md](https://github.com/pytorch/pytorch/blob/master/README.md) file.\n* Additional information can be found in [PyTorch CONTRIBUTING.md](https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md).\n\n\n## License\n\nPyTorch Tutorials is BSD licensed, as found in the LICENSE file.\n","funding_links":[],"categories":["Jupyter Notebook","Please find below the links to awesome cheat-sheet and resources:","A01_机器学习教程","Python","Tutorials \u0026 books \u0026 examples｜教程 \u0026 书籍 \u0026 示例","Tutorials, books, \u0026 examples","HarmonyOS","Pytorch","Tutorials \u0026 Examples"],"sub_categories":["Machine-Learning/Data Science/AI/DL:","Other libraries｜其他库:","Other libraries:","Windows Manager","3. Course and Code"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Ftutorials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytorch%2Ftutorials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytorch%2Ftutorials/lists"}