Arm backend: Decompose integral float pow exponents#19693
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19693
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New FailureAs of commit ee2d949 with merge base b4a9e72 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
Some tests fails that needs to be handled before merge. Ill rerun all tests to see if it was a random error |
|
@claude review this PR |
|
Claude finished @usamahz's task in 1m 35s —— View job Review of PR #19693
Overall: This is a clean, well-scoped PR. The change is conservative, solves a real problem, and has appropriate test coverage. SummaryThe PR extends What works well
Minor observations (non-blocking)
VerdictLooks good to merge once the unrelated CI failure ( |
Treat positive integral float scalar exponents like integer exponents in DecomposeIntPowPass. This avoids lowering pow(x, 2.0) to TOSA POW, whose reference model rejects negative bases even when the exponent is mathematically integral. Keep zero and negative float exponents on their existing paths so the current zero decomposition and TOSA constraint handling stay unchanged. This unblocks Swin2SR-style graphs on the TOSA reference model. Ticket: MLETORCH-2134 Test Plan: - lintrunner on changed files - pytest test_decompose_int_pow_pass.py and test_pow.py - TinySwin2SR FP/INT TOSA reference smoke Signed-off-by: Usamah Zaheer <usamah.zaheer@arm.com> Change-Id: I650190a63fc8cfc676dbdde4ce33200d71e9aa4c
8c8922d to
ee2d949
Compare
Treat positive integral float scalar exponents like integer exponents in DecomposeIntPowPass. This avoids lowering pow(x, 2.0) to TOSA POW, whose reference model rejects negative bases even when the exponent is mathematically integral.
Test Plan:
cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani