Note
Go to the end to download the full example code.
Template Tutorial#
Created On: Mar 29, 2023 | Last Updated: Jul 10, 2024 | Last Verified: Not Verified
Author: FirstName LastName
Item 1
Item 2
Item 3
PyTorch v2.0.0
GPU ???
Other items 3
If you have a video, add it here like this:
To test your tutorial locally, you can do one of the following:
You can control specific files that generate the results by using
GALLERY_PATTERNenvironment variable. The GALLERY_PATTERN variable respects regular expressions. For example to run onlyneural_style_transfer_tutorial.py, use the following command:GALLERY_PATTERN="neural_style_transfer_tutorial.py" make html
or
GALLERY_PATTERN="neural_style_transfer_tutorial.py" sphinx-build . _build
Make a copy of this repository and add only your tutorial to the beginner_source directory removing all other tutorials. Then run
make html.
Verify that all outputs were generated correctly in the created HTML.
Overview#
Describe Why is this topic important? Add Links to relevant research papers.
This tutorial walks you through the process of….
Steps#
Example code (the output below is generated automatically):
import torch
x = torch.rand(5, 3)
print(x)
tensor([[0.7590, 0.7293, 0.5557],
[0.9132, 0.2422, 0.9639],
[0.9287, 0.0691, 0.7485],
[0.6828, 0.4708, 0.1351],
[0.7103, 0.3628, 0.2676]])
(Optional) Additional Exercises#
Add additional practice exercises for users to test their knowledge. Example: NLP from Scratch.
Conclusion#
Summarize the steps and concepts covered. Highlight key takeaways.
Further Reading#
Link1
Link2
Total running time of the script: (0 minutes 0.006 seconds)