Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/25111
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit be149f3 with merge base 799098d ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
|
|
@pytorchbot label "release notes: exir" |
|
@claude review effort=max |
|
Claude finished @shoumikhin's task in 17m 53s —— View job This PR makes Detailed reviewPR Review: #25111SummaryThe PR adds
Python couldn't be run in this job, so nothing was executed. Every finding comes from reading the code. API Design
Testing
RecommendationNeeds Discussion The exir maintainers need to decide whether |
Fixes pytorch#24764. Models that call torch.masked_select export cleanly with torch.export, but to_edge rejected them with SpecViolationError because aten.masked_select.default is not in the Core ATen opset. ExecuTorch already provides a portable kernel for masked_select.out. Adding torch.ops.aten.masked_select.default to the verifier's exception list enables models using masked_select to lower to Edge IR and serialize to ExecuTorch without requiring manual _core_aten_ops_exception_list configuration. Test Plan: Ran test_edge_dialect_masked_select in exir.program.test.test_program verifying that masked_select is retained in Edge IR and serializes cleanly to ExecuTorch with to_executorch(). Signed-off-by: Roxen-AS <[email protected]>
75db76d to
8ad0377
Compare
|
Thanks for the thorough review! Updated the PR:
|
Summary
Fixes #24764.
Models that call
torch.masked_selectexport cleanly withtorch.export, butto_edgepreviously rejected them withSpecViolationError("Operator torch._ops.aten.masked_select.default is not in Core ATen opset") becauseaten.masked_select.defaultis not in Core ATen.ExecuTorch already provides a portable kernel for
masked_select.out(kernels/portable/cpu/op_masked_select.cpp). Addingtorch.ops.aten.masked_select.defaultto_get_core_aten_ops_exception_listinexir/verification/verifier.py(analogous to_upsample_bicubic2d_aa,full_like, etc.) allows models usingmasked_selectto lower to Edge IR and serialize to ExecuTorch out-of-the-box without requiring manual_core_aten_ops_exception_listconfiguration.Test plan
test_edge_verifier_masked_selectinexir/verification/test/test_verifier.py.to_edgeandto_edge_transform_and_lowerplus serialization:cc @JacobSzwejbka @angelayi @nil-is-all