-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add the Latest Features For Basics Autograd Tutorial #3395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add the Latest Features For Basics Autograd Tutorial #3395
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3395
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 00b4978 with merge base efd3430 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Didn't find following labels among repository labels: topic: core,topic: intro |
@pytorchbot label core |
@pytorchbot label intro |
Could you please review the changes? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addition, I added some comments
@@ -160,6 +161,39 @@ | |||
# - accumulates them in the respective tensor’s ``.grad`` attribute | |||
# - using the chain rule, propagates all the way to the leaf tensors. | |||
# | |||
# We can also visualize the computational graph by the following 2 methods: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for this section, we can just keep it short for now, and link to the relevant resource:
To get a sense of what this computational graph looks like we can use the following tools:
1. torchviz is a package to visualize computational graphs
https://github.com/szagoruyko/pytorchviz
2. TORCH_LOGS="+autograd" enables logging for the backward pass.
https://dev-discuss.pytorch.org/t/highlighting-a-few-recent-autograd-features-h2-2023/1787
(for the links use the proper hyperlink syntax)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Fixes #3119
As described in the issue, I have updated the tutorial to address the latest visualization tools and add the autograd mechanics tutorial link to it as well. Could you please review?
Description
Checklist
cc @subramen @albanD @jbschlosser @svekars