Skip to content

Add torch.compile escape hatches to programming model doc#3792

Open
ydwu4 wants to merge 1 commit intopytorch:mainfrom
ydwu4:main
Open

Add torch.compile escape hatches to programming model doc#3792
ydwu4 wants to merge 1 commit intopytorch:mainfrom
ydwu4:main

Conversation

@ydwu4
Copy link
Copy Markdown

@ydwu4 ydwu4 commented Mar 10, 2026

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Mar 10, 2026

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit f00a68f with merge base 29580ff (image):

NEW FAILURE - The following job has 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 10, 2026
@svekars svekars requested a review from williamwen42 March 11, 2026 02:45
@svekars svekars added the torch.compile Torch compile and other relevant tutorials label Mar 11, 2026
Copy link
Copy Markdown
Member

@williamwen42 williamwen42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review! I think this should go into the primary programming model docs, not the tutorial.

e.g. mention leaf_function as an escape hatch here: https://docs.pytorch.org/docs/stable/user_guide/torch_compiler/compile/programming_model.fullgraph_true.html#strategy-2-pure-functions-can-always-be-compiled-via-an-escape-hatch

And then write a new page for leaf_function such as https://docs.pytorch.org/docs/stable/user_guide/torch_compiler/compile/programming_model.dynamo_nonstrict_trace.html

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.

3 participants