Skip to content

[ExecuTorch][Core AI][1/x] Graph pass: int64/float64 dtype narrowing - #21509

Open
metascroy wants to merge 3 commits into
mainfrom
executorch-coreai-passes-1/x
Open

[ExecuTorch][Core AI][1/x] Graph pass: int64/float64 dtype narrowing#21509
metascroy wants to merge 3 commits into
mainfrom
executorch-coreai-passes-1/x

Conversation

@metascroy

Copy link
Copy Markdown
Contributor

Adds NarrowToCoreAIDtypesPass, which casts int64/float64 graph inputs to 32-bit at the boundary and widens 64-bit outputs back. This lets index style inputs such as token ids be delegated, since Core AI supports only up to 32-bit dtypes. The model's external I/O dtypes are preserved. Includes unit tests.

@metascroy
metascroy requested a review from shoumikhin as a code owner July 31, 2026 00:32
@pytorch-bot

pytorch-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit d8c86a9 with merge base f516236 (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 This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 31, 2026
@metascroy metascroy changed the title [ExecuTorch][Core AI] Graph pass: int64/float64 dtype narrowing [ExecuTorch][Core AI][1/x] Graph pass: int64/float64 dtype narrowing Jul 31, 2026
Base automatically changed from executorch-coreai-dev-tooling-0/x to main July 31, 2026 16:58
@github-actions

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.

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