Skip to content

Resolve metric names in one place - #23196

Merged
meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
pssrawat:export-D119832728
Sep 29, 2026
Merged

meta-codesync[bot] merged 1 commit into
pytorch:mainfrom
pssrawat:export-D119832728

Conversation

@pssrawat

Copy link
Copy Markdown
Contributor

Summary:
Enabling change for the rest of the stack. calculate_numeric_gap resolved
"MSE"/"L1"/"SNR" with an if/elif chain inline in its body, so no other caller could
reuse it. Moved to numerical_comparator as comparator_class_for_metric.

Required because the next diff up wraps the resolved comparator in a decorator, so it
has to resolve the metric name itself. Same names, same behaviour; only the error text
changes.

Differential Revision: D119832728

Summary:
Enabling change for the rest of the stack. `calculate_numeric_gap` resolved
"MSE"/"L1"/"SNR" with an if/elif chain inline in its body, so no other caller could
reuse it. Moved to `numerical_comparator` as `comparator_class_for_metric`.

Required because the next diff up wraps the resolved comparator in a decorator, so it
has to resolve the metric name itself. Same names, same behaviour; only the error text
changes.

Differential Revision: D119832728
@pssrawat
pssrawat requested a review from Gasoonjia as a code owner September 28, 2026 20:29
@pytorch-bot

pytorch-bot Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 3 New Failures, 2 Pending

As of commit 0ca6c13 with merge base 36302a1 (image):

NEW FAILURES - The following jobs have failed:

  • Cadence Build & Test / hifi-build / Resolve CI docker image / resolve (gh)
    ##[error]Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. Fetching and executing a fork's code in that trusted context commonly leads to "pwn request" vulnerabilities. To opt in, review the risks at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.
  • Cadence Build & Test / Resolve CI docker image / resolve (gh)
    ##[error]Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. Fetching and executing a fork's code in that trusted context commonly leads to "pwn request" vulnerabilities. To opt in, review the risks at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.
  • Cadence Build & Test / vision-build / Resolve CI docker image / resolve (gh)
    ##[error]Refusing to check out fork pull request code from a 'pull_request_target' workflow. This workflow runs with the base repository's GITHUB_TOKEN, secrets, default-branch cache scope, and runner access. Fetching and executing a fork's code in that trusted context commonly leads to "pwn request" vulnerabilities. To opt in, review the risks at https://gh.io/securely-using-pull_request_target and set 'allow-unsafe-pr-checkout: true' on the actions/checkout step.

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 Sep 28, 2026
@meta-codesync

meta-codesync Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

@pssrawat has exported this pull request. If you are a Meta employee, you can view the originating Diff in D119832728.

@pssrawat pssrawat added the release notes: none Do not include this in the release notes label Sep 28, 2026
@meta-codesync
meta-codesync Bot merged commit 17ed8d5 into pytorch:main Sep 29, 2026
231 of 250 checks passed
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. meta-exported release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants