Skip to content

[devtools] Add reference_graph parameter to calculate_numeric_gap#17697

Merged
Gasoonjia merged 1 commit into
gh/gasoonjia/120/origfrom
gh/gasoonjia/121/orig
Feb 25, 2026
Merged

[devtools] Add reference_graph parameter to calculate_numeric_gap#17697
Gasoonjia merged 1 commit into
gh/gasoonjia/120/origfrom
gh/gasoonjia/121/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: #17459 by @Gasoonjia
^ 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/gasoonjia/121/base
ghstack PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/121/head
Merge bot PR base: https://github.com/pytorch/executorch/tree/gh/gasoonjia/120/orig
Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/gasoonjia/121/orig
Differential Revision: D93266779
@diff-train-skip-merge

Pull Request resolved: #17459

This change adds a `reference_graph` parameter to the `calculate_numeric_gap` API, allowing users to explicitly select which graph to use as the golden reference for numeric gap calculation, which enables backends like Qualcomm to use the post-custom-transform graph as the golden reference for numeric gap calculation.

This is part of the operator-level numeric discrepancy detector project for ExecuTorch Qualcomm backend (#16381).

Design doc: https://docs.google.com/document/d/1GaCHiy9InytOsUrl2BKEgOiP1iKTfpCVdWg6QDh0N2E/edit?tab=t.0#heading=h.fcrpnrtb6cud
ghstack-source-id: 344497033

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

pytorch-bot Bot commented Feb 25, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

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 Feb 25, 2026
@Gasoonjia Gasoonjia merged commit c7bc633 into gh/gasoonjia/120/orig Feb 25, 2026
169 of 176 checks passed
@Gasoonjia Gasoonjia deleted the gh/gasoonjia/121/orig branch February 25, 2026 08:05
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