Skip to content

XNNPACK graph runtime: backend integration behind use_graph_runtime#20256

Draft
GregoryComer wants to merge 2 commits into
gh/GregoryComer/191/headfrom
gh/GregoryComer/192/head
Draft

XNNPACK graph runtime: backend integration behind use_graph_runtime#20256
GregoryComer wants to merge 2 commits into
gh/GregoryComer/191/headfrom
gh/GregoryComer/192/head

Conversation

@GregoryComer

Copy link
Copy Markdown
Member

Wires the graph runtime into XnnpackBackend behind the use_graph_runtime
backend option (default off, with per-method runtime-spec override). When
enabled, init() deserializes via FlatbufferGraphBuilder and builds an Executor;
execute()/destroy() gain the graph path alongside the legacy XNNCompiler path.

With prefer_in_tree_kernel disabled, existing all-XNNPACK models run end-to-end
on the new executor.

Authored with Claude.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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:

❌ 8 New Failures

As of commit b0e3414 with merge base 4c9c444 (image):

NEW FAILURES - The following jobs have failed:

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

[ghstack-poisoned]
GregoryComer added a commit that referenced this pull request Jun 12, 2026
Wires the graph runtime into XnnpackBackend behind the use_graph_runtime
backend option (default off, with per-method runtime-spec override). When
enabled, init() deserializes via FlatbufferGraphBuilder and builds an Executor;
execute()/destroy() gain the graph path alongside the legacy XNNCompiler path.

With prefer_in_tree_kernel disabled, existing all-XNNPACK models run end-to-end
on the new executor.

Authored with Claude.


ghstack-source-id: d9178c7
ghstack-comment-id: 4695613250
Pull-Request: #20256
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.

1 participant