Skip to content

Conversation

@YufengShi-dudu
Copy link
Collaborator

@YufengShi-dudu YufengShi-dudu commented Nov 25, 2025

  • Rename ReplaceInfValuesPass -> ReplaceInfAndLimitValuesPass
  • Extend to rewrite torch.finfo(torch.float32).{min,max} to ±255.0 to avoid generating TOSA RESCALE shifts < 2 (invalid per spec)

Change-Id: I749f7c28090c1e994ce27b19944db4c57f3b517d

cc @freddan80 @per @zingo @oscarandersson8218 @digantdesai

- Rename ReplaceInfValuesPass -> ReplaceInfAndLimitValuesPass
- Extend to rewrite torch.finfo(torch.float32).{min,max} to ±255.0
  to avoid generating TOSA RESCALE shifts < 2 (invalid per spec)

Change-Id: I749f7c28090c1e994ce27b19944db4c57f3b517d
Signed-off-by: Yufeng Shi <[email protected]>
@YufengShi-dudu YufengShi-dudu added partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm ciflow/trunk release notes: arm Changes to the ARM backend delegate labels Nov 25, 2025
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 25, 2025

🔗 Helpful Links

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

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

❗ 2 Active SEVs

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

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 Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant