Skip to content

[executorch][native] Suggest rounding to nearest when engines narrow values - #24539

Open
pytorchbot wants to merge 1 commit into
gh/digantdesai/190/origfrom
gh/digantdesai/191/orig
Open

pytorchbot wants to merge 1 commit into
gh/digantdesai/190/origfrom
gh/digantdesai/191/orig

Conversation

@pytorchbot

Copy link
Copy Markdown
Collaborator

This PR was created by the merge bot to help merge the original PR into the main branch.
ghstack PR number: #24364 by @digantdesai
^ Please use this as the source of truth for the PR details, comments, and reviews
ghstack PR base: https://github.com/pytorch/executorch/tree/gh/digantdesai/191/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/digantdesai/191/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/digantdesai/190/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/digantdesai/191/orig

@diff-train-skip-merge

…values

Pull Request resolved: #24364

Rounding toward zero when narrowing f32 to f16, which Vulkan and WebGPU allow, biases every stored value toward zero, and the bias compounds across layers. The README suggests rounding to nearest, ties to even, as eager does.

Authored with Claude Code.

@bypass-github-export-checks
@bypass-github-pytorch-ci-checks
@bypass-github-executorch-ci-checks
ghstack-source-id: 463657754
@exported-using-ghexport

Differential Revision: [D128254885](https://our.internmc.facebook.com/intern/diff/D128254885/)
@pytorch-bot

pytorch-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit adbb6ed with merge base 0f8e096 (image):

NEW FAILURES - The following jobs have failed:

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 3, 2026

This branch was previously deployed

1 inactive deployment
cadence — adbb6ed0 Deployed Nov 3, 2026 by pytorchbot via hifi-op-test / hifi4 #36370
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.

2 participants