Skip to content

Small typo in torch.compile tutorial#3806

Open
ReggieRichardson wants to merge 1 commit intopytorch:mainfrom
ReggieRichardson:torch_compile_-3804
Open

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

Conversation

@ReggieRichardson
Copy link
Copy Markdown

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.

@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.

❌ 15 New Failures

As of commit 1f624b4 with merge base 612d2a0 (image):

NEW FAILURES - The following jobs have failed:

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feedback about Introduction to torch.compile - A little typo

2 participants