Skip to content

Restructure Python custom operators guide#3916

Draft
zou3519 wants to merge 1 commit into
mainfrom
custom-python-ops-guide-refactor
Draft

Restructure Python custom operators guide#3916
zou3519 wants to merge 1 commit into
mainfrom
custom-python-ops-guide-refactor

Conversation

@zou3519
Copy link
Copy Markdown
Contributor

@zou3519 zou3519 commented Jun 3, 2026

Split the custom Python operators tutorial into an overview plus focused pages for functional operators, mutable operators, and optional registrations. Emphasize required schema and mutation/aliasing contracts, opcheck validation, fake kernels for torch.compile/export, and 2.13-only in-place/out custom operator behavior.

Add the new pages under the custom operators landing page so the left navigation exposes a nested custom-ops section and users can move through the guide in order.

Validated with lintrunner -m main and make clean-cache && make html-noplot.

This was generated by codex and I didn't read it carefully (but I did read most of it).

Split the custom Python operators tutorial into an overview plus focused pages for functional operators, mutable operators, and optional registrations. Emphasize required schema and mutation/aliasing contracts, opcheck validation, fake kernels for torch.compile/export, and 2.13-only in-place/out custom operator behavior.

Add the new pages under the custom operators landing page so the left navigation exposes a nested custom-ops section and users can move through the guide in order.

Validated with lintrunner -m main and make clean-cache && make html-noplot.
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jun 3, 2026

🔗 Helpful Links

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

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

✅ No Failures

As of commit ebf88d6 with merge base 326edb0 (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 Jun 3, 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.

1 participant