[ExecuTorch][Core AI][1/x] Graph pass: int64/float64 dtype narrowing - #21509
Conversation
🔗 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. ⏳ 3 Pending, 1 Unrelated FailureAs of commit a73ddca with merge base d827cf7 ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@claude review this code |
|
Claude finished @metascroy's task in 3m 49s —— View job Code Review —
|
24baa53 to
c7382cc
Compare
|
@digantdesai @JacobSzwejbka can I get a stamp here. It's already been reviewed by @cymbalrush |
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.