Skip to content

Arm Backend: temp fix for flaky eq op test #9794

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
Apr 1, 2025
Merged

Conversation

fumchin
Copy link
Collaborator

@fumchin fumchin commented Apr 1, 2025

This patch provides a temporary workaround for the flaky op_eq test.

  • Add eq_scalar_rank4_randn test to xfail temporarily, and set strict to false
  • Change misleading aten_op naming

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

- Add eq_scalar_rank4_randn test to xfail temporarily, and set strict to false
- Change misleading aten_op naming

Signed-off-by: Fang-Ching <Fang-Ching.Chen@arm.com>
Change-Id: I2356b013c1a7a50d3451585cfe03687f16e6a358
@fumchin fumchin added 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 ciflow/trunk topic: not user facing labels Apr 1, 2025
@fumchin fumchin requested review from zingo and Copilot April 1, 2025 09:17
@fumchin fumchin requested a review from digantdesai as a code owner April 1, 2025 09:17
Copy link

pytorch-bot bot commented Apr 1, 2025

🔗 Helpful Links

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

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

❌ 1 Cancelled Job, 1 Pending

As of commit 76f8003 with merge base bad2fa9 (image):

CANCELLED JOB - The following job was cancelled. Please retry:

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

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR temporarily addresses a flaky eq operator test for the ARM backend.

  • Renames misleading operation names from aten_op_BI and aten_op_MI to aten_op_Tensor and aten_op_Scalar respectively.
  • Adds an xfail entry for the eq_scalar_rank4_randn test with a clear bug reference and sets strict mode to false to ease test flakiness.
Comments suppressed due to low confidence (2)

backends/arm/test/ops/test_eq.py:144

  • [nitpick] The function name test_eq_u85_BI still reflects the old naming convention (BI), even though it now uses aten_op_Tensor. Consider renaming the function (e.g., to test_eq_u85_Tensor) for consistency.
def test_eq_u85_BI(test_module):

backends/arm/test/ops/test_eq.py:141

  • Since strict=False is a temporary workaround for the flaky test, consider adding a comment that references the bug ID (MLETORCH-847) or notes that the workaround should be revisited in the future.
strict=False,

@zingo zingo merged commit 77c35f5 into pytorch:main Apr 1, 2025
165 of 166 checks passed
kirklandsign pushed a commit that referenced this pull request Apr 11, 2025
This patch provides a temporary workaround for the flaky op_eq test.

- Add eq_scalar_rank4_randn test to xfail temporarily, and set strict to
false
- Change misleading aten_op naming


Signed-off-by: Fang-Ching <Fang-Ching.Chen@arm.com>
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 topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants