Skip to content

Update XNNPACK doc structure and add template#14873

Merged
GregoryComer merged 5 commits into
pytorch:mainfrom
GregoryComer:new-backend-docs
Oct 20, 2025
Merged

Update XNNPACK doc structure and add template#14873
GregoryComer merged 5 commits into
pytorch:mainfrom
GregoryComer:new-backend-docs

Conversation

@GregoryComer

@GregoryComer GregoryComer commented Oct 8, 2025

Copy link
Copy Markdown
Member

Summary

Prototype an updated doc structure for the XNNPACK backend. Extract a common template out under docs/source/backends/tempate/

This PR updates the doc structure as follows. Under the template, the landing page is required, partitioner, quantization, and op support docs are recommended, and the rest are optional.

  • XNNPACK Backend
    • Quantization (recommended)
    • Partitioner APIs (recommended)
    • Operator Support (optional)
    • Architecture and Internals (optional)
    • Tutorials (optional)
    • Guides (optional)

@pytorch-bot

pytorch-bot Bot commented Oct 8, 2025

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14873

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 6 New Failures, 1 Cancelled Job, 13 Pending

As of commit ed22ca6 with merge base 7d4db45 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 8, 2025
@github-actions

github-actions Bot commented Oct 8, 2025

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@GregoryComer

Copy link
Copy Markdown
Member Author

This is a pretty early draft, but I'd be interested in any thoughts.
https://docs-preview.pytorch.org/pytorch/executorch/14873/backends/xnnpack/xnnpack-overview.html

CC @digantdesai @psiddh @mergennachin @cccclai @metascroy

@GregoryComer GregoryComer force-pushed the new-backend-docs branch 3 times, most recently from 15169b1 to bd30b09 Compare October 8, 2025 22:00
@GregoryComer GregoryComer changed the title [WIP] Prototype updated XNNPACK doc structure [WIP] Update XNNPACK doc structure Oct 8, 2025
@GregoryComer GregoryComer changed the title [WIP] Update XNNPACK doc structure Update XNNPACK doc structure and add template Oct 9, 2025
@GregoryComer GregoryComer marked this pull request as ready for review October 9, 2025 07:21
Comment thread docs/source/backends-overview.md Outdated
| Backend | Platform(s) | Hardware Type | Typical Use Case |
|-----------------------------------------------|---------------------|---------------|---------------------------------|
| [XNNPACK](backends/xnnpack/xnnpack-overview) | All | CPU | General-purpose, fallback |
| [Core ML](backends-coreml) | iOS, macOS | NPU/GPU | Apple devices, high performance |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CoreML is CPU too

@digantdesai digantdesai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, left some comments.

@@ -0,0 +1,3 @@
# Using {FEATURE} on {BACKEND_NAME}

This is a placeholder guide.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add meta details about the intended use of this section?

Comment thread docs/source/backends/template/guides/backend-tutorials.md Outdated

## Step 1: Environment Setup

This tutorial is intended to be run from a {SUPPORTED_HOST_OS} and uses Conda for Python environment management. For full setup details and system requirements, see [Getting Started with ExecuTorch](/getting-started).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1

Comment thread docs/source/backends/template/README.md
Comment thread docs/source/backends/xnnpack/op-support.csv
Comment thread docs/source/backends-overview.md Outdated
Comment thread docs/source/backends-overview.md Outdated
Comment thread docs/source/backends-overview.md Outdated
Comment thread docs/source/backends-overview.md Outdated
Comment thread docs/source/backends-overview.md Outdated
Comment thread docs/source/backends/xnnpack/xnnpack-overview.md Outdated
Comment thread docs/source/backends/xnnpack/xnnpack-overview.md Outdated
Comment thread docs/source/backends/template/README.md Outdated
@metascroy metascroy mentioned this pull request Oct 11, 2025
@GregoryComer GregoryComer force-pushed the new-backend-docs branch 2 times, most recently from 67f0493 to 592f698 Compare October 13, 2025 06:02
:hidden:
:caption: {BACKEND} Backend

backend-troubleshooting

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

np: do you wanna put the troubleshooting section a bit further back in the list?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we went back and forth (literally on the list too :p)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I updated to put it after partitioner and quant docs, but before arch + internals. Does that work?

backend-troubleshooting
backend-partitioner
backend-quantization
backend-op-support

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thinking more, technically op-support can be under partitioner.

So thinking out loud,

  • partitioner, quantizer (two entry point, separate pages)
  • tutorials (curious why it is not here?)
  • internals (can also house reference material facts which can't be part of parishioner or quantizer)
  • guide/troubleshooting/gotcha/faq (one page with a title reflecting it is for all these :p)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That seems reasonable. I've updated to move op support into the partitioner page. I also added tutorials to the TOC in the template - good catch.

@mergennachin

Copy link
Copy Markdown
Contributor

@GregoryComer @digantdesai

Under Edge Platforms (iOS, Android, Desktop, C++) etc

I don't see XNNPACK anymore on the left nav "Edge->Android->Backends", as well as the overview page

https://docs-preview.pytorch.org/pytorch/executorch/14873/android-backends.html (no link to XNNPACK)

https://docs-preview.pytorch.org/pytorch/executorch/14873/android-section.html (no XNNPACK on left nav)

@mergennachin

Copy link
Copy Markdown
Contributor

Now the chevron button doesn't collapse/expand on the left nav

https://docs-preview.pytorch.org/pytorch/executorch/14873/android-xnnpack.html?v=10

and the links down below in the page doesn't work

SS-JIA added a commit that referenced this pull request Oct 15, 2025
Summary:
Title says it all! Add Vulkan docs in accordance to the format for XNNPACK introduced in #14873.
SS-JIA added a commit that referenced this pull request Oct 15, 2025
Summary:
Title says it all!

Add docs for the Samsung backend based on the template introduced in #14873.
SS-JIA added a commit that referenced this pull request Oct 16, 2025
Summary:
Title says it all!

Add docs for the Samsung backend based on the template introduced in #14873.
SS-JIA added a commit that referenced this pull request Oct 16, 2025
Summary:
Title says it all! Add Vulkan docs in accordance to the format for XNNPACK introduced in #14873.
SS-JIA added a commit that referenced this pull request Oct 16, 2025
Summary:
Title says it all!

Add docs for the Samsung backend based on the template introduced in
#14873.
backend-op-support
backend-arch-internals
tutorials/backend-tutorials
guides/backend-guides

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Closing " ``` " missing

SS-JIA added a commit that referenced this pull request Oct 17, 2025
Summary:
Title says it all! Add Vulkan docs in accordance to the format for XNNPACK introduced in #14873.
SS-JIA added a commit that referenced this pull request Oct 17, 2025
Summary:
Title says it all! Add Vulkan docs in accordance to the format for XNNPACK introduced in #14873.
@GregoryComer GregoryComer force-pushed the new-backend-docs branch 2 times, most recently from 796d05c to 3f45145 Compare October 18, 2025 00:45
@GregoryComer

GregoryComer commented Oct 20, 2025

Copy link
Copy Markdown
Member Author

I've fixed the last couple of links and am merging as is. The issue with expanding the menu for backends under Android/iOS doesn't seem to be resolved when increased the max TOC depth under edge-platform-sections, so we'll need to investigate - we can take as a follow-up.

@GregoryComer GregoryComer merged commit 0a1dfb2 into pytorch:main Oct 20, 2025
133 of 143 checks passed
@digantdesai

Copy link
Copy Markdown
Contributor

Thanks @GregoryComer!

GregoryComer pushed a commit to GregoryComer/executorch that referenced this pull request Oct 22, 2025
Summary:
Title says it all!

Add docs for the Samsung backend based on the template introduced in
pytorch#14873.
GregoryComer added a commit to GregoryComer/executorch that referenced this pull request Oct 22, 2025
Prototype an updated doc structure for the XNNPACK backend. Extract a
common template out under docs/source/backends/tempate/

This PR updates the doc structure as follows. Under the template, the
landing page is required, partitioner, quantization, and op support docs
are recommended, and the rest are optional.

- XNNPACK Backend
   - Quantization (recommended)
   - Partitioner APIs (recommended)
   - Operator Support (optional)
   - Architecture and Internals (optional)
   - Tutorials (optional)
   - Guides (optional)
robert-kalmar added a commit that referenced this pull request Dec 12, 2025
Updating per template in
#14873

Signed-off-by: Robert Kalmar <robert.kalmar@nxp.com>
xingguo01 pushed a commit to xingguo01/executorch that referenced this pull request Dec 18, 2025
Updating per template in
pytorch#14873

Signed-off-by: Robert Kalmar <robert.kalmar@nxp.com>
jirioc pushed a commit to nxp-upstream/executorch that referenced this pull request Dec 19, 2025
Summary:
Title says it all!

Add docs for the Samsung backend based on the template introduced in
pytorch#14873.
jirioc pushed a commit to nxp-upstream/executorch that referenced this pull request Dec 19, 2025
### Summary
Prototype an updated doc structure for the XNNPACK backend. Extract a
common template out under docs/source/backends/tempate/

This PR updates the doc structure as follows. Under the template, the
landing page is required, partitioner, quantization, and op support docs
are recommended, and the rest are optional.

- XNNPACK Backend
   - Quantization (recommended)
   - Partitioner APIs (recommended)
   - Operator Support (optional)
   - Architecture and Internals (optional)
   - Tutorials (optional)
   - Guides (optional)
jirioc pushed a commit to nxp-upstream/executorch that referenced this pull request Dec 19, 2025
Updating per template in
pytorch#14873

Signed-off-by: Robert Kalmar <robert.kalmar@nxp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants