Skip to content

[executorch] Update XNNPACK backend to use input_spec metadata + support HOPs#18147

Draft
GregoryComer wants to merge 1 commit intogh/GregoryComer/178/basefrom
gh/GregoryComer/178/head
Draft

[executorch] Update XNNPACK backend to use input_spec metadata + support HOPs#18147
GregoryComer wants to merge 1 commit intogh/GregoryComer/178/basefrom
gh/GregoryComer/178/head

Conversation

@GregoryComer
Copy link
Member

@GregoryComer GregoryComer commented Mar 13, 2026

Stack from ghstack (oldest at bottom):

Update XNNPACK backend utilities to use input_spec node metadata for
identifying parameters and retrieving tensor data, with fallback to
graph signature for backward compatibility.

  • is_param_node, get_param_tensor, get_tensor_name now use
    input_spec metadata, enabling correct operation inside HOP submodules
  • XnnpackPartitioner adapted to renamed ConfigurationBasedPartitioner
    and recursive get_matched_nodes_from_configs(ep, gm) API
  • New test_hop.py integration tests for cond, map, and scan delegation
  • Example notebooks for cond and scan with XNNPACK

Differential Revision: D95876982

…ort HOPs

Update XNNPACK backend utilities to use `input_spec` node metadata for
identifying parameters and retrieving tensor data, with fallback to
graph signature for backward compatibility.

- `is_param_node`, `get_param_tensor`, `get_tensor_name` now use
  input_spec metadata, enabling correct operation inside HOP submodules
- `XnnpackPartitioner` adapted to renamed `ConfigurationBasedPartitioner`
  and recursive `get_matched_nodes_from_configs(ep, gm)` API
- New `test_hop.py` integration tests for cond, map, and scan delegation
- Example notebooks for cond and scan with XNNPACK

Differential Revision: [D95876982](https://our.internmc.facebook.com/intern/diff/D95876982/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 13, 2026

🔗 Helpful Links

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

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

❌ 22 New Failures

As of commit 6391151 with merge base 48bd687 (image):

NEW FAILURES - The following jobs have failed:

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

@GregoryComer GregoryComer marked this pull request as draft March 13, 2026 00:16
@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 Mar 13, 2026
@github-actions
Copy link

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.

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. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant