Skip to content

Small typo in torch.compile tutorial#3806

Open
ReggieRichardson wants to merge 2 commits intopytorch:mainfrom
ReggieRichardson:torch_compile_-3804
Open

Small typo in torch.compile tutorial#3806
ReggieRichardson wants to merge 2 commits intopytorch:mainfrom
ReggieRichardson:torch_compile_-3804

Conversation

@ReggieRichardson
Copy link
Copy Markdown

@ReggieRichardson ReggieRichardson commented Mar 28, 2026

Fixes #3804

Description

There is a small inconsistency in the section explaining the behavior of torch.compile when running the function bar. When describing the first run, the traced graph is listed as x = a / (torch.abs(a) + 1); b.sum() but when referencing that same graph (from the first run) in the second run it is listed as x = a / (torch.abs(a) + 1);

Checklist

  • The issue that is being fixed is referred in the description (see above "Fixes #ISSUE_NUMBER")
  • Only one issue is addressed in this pull request
  • Labels from the issue that this PR is fixing are added to this pull request
  • No unnecessary issues are included into this pull request.

cc @williamwen42 @msaroufim @anijain2305 @angelayi

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Mar 28, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/tutorials/3806

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 81d1f26 with merge base 084b358 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the cla signed label Mar 28, 2026
@svekars svekars added the torch.compile Torch compile and other relevant tutorials label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed torch.compile Torch compile and other relevant tutorials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feedback about Introduction to torch.compile - A little typo

3 participants