Skip to content

Add numerical comparator base class and L1 comparator #11751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

Juntian777
Copy link
Contributor

Summary:
This diff adds the numerical comparator base class and L1 comparator as the start of the numerical discrepancy analysis infrastructure.

This setup provides a flexible framework for implementing various numerical comparison strategies by extending the NumericalComparatorBase class. The L1 comparator is a specific example that measures the sum of absolute differences between numerical inputs.

Reviewed By: Gasoonjia

Differential Revision: D76746854

@Juntian777 Juntian777 requested a review from Gasoonjia as a code owner June 17, 2025 05:09
Copy link

pytorch-bot bot commented Jun 17, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 4080c87 with merge base be8ffd1 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-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 Jun 17, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76746854

@Juntian777
Copy link
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Jun 17, 2025
Summary:
Pull Request resolved: pytorch#11751

This diff adds the numerical comparator base class and L1 comparator as the start of the numerical discrepancy analysis infrastructure.

This setup provides a flexible framework for implementing various numerical comparison strategies by extending the NumericalComparatorBase class. The L1 comparator is a specific example that measures the sum of absolute differences between numerical inputs.

Reviewed By: Gasoonjia

Differential Revision: D76746854
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D76746854

@facebook-github-bot facebook-github-bot merged commit 3b1c7fd into pytorch:main Jun 17, 2025
97 of 98 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. fb-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.

3 participants