Remove deprecated XNNPACK capture utilities and migrate tests#18134
Remove deprecated XNNPACK capture utilities and migrate tests#18134JacobSzwejbka wants to merge 2 commits intopytorch:mainfrom
Conversation
…pytorch#18111) Summary: Migrate test_pass_infra, test_debug_handle_map, test_delegate_map_builder, test_backends_nested, and hta_partitioner_demo to use the torch.export.export() + to_edge() flow instead of the deprecated exir.capture() API. Key changes: - Replace exir.capture(model, inputs, CaptureConfig()).to_edge() with to_edge(export(model, inputs, strict=True)) - Wrap plain functions in nn.Module for torch.export compatibility - Use dynamic debug handle extraction instead of hardcoded values in test_delegate_map_builder (handle numbering changed) - Collapse lifted/unlifted pattern variants in hta_partitioner_demo since torch.export always produces lifted graphs Differential Revision: D95605454
Summary: Delete capture_graph_for_xnnpack() and get_xnnpack_capture_config() which were only used in test files and relied on the deprecated exir.capture API. Migrate test_xnnpack_utils.py to use inline to_edge(export(...)) calls. Remove the deprecated exports from xnnpack/__init__.py. Differential Revision: D95605468
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18134
Note: Links to docs will display an error until the docs builds have been completed. ❌ 6 New Failures, 1 Cancelled Job, 4 Pending, 2 Unrelated FailuresAs of commit 3193513 with merge base eaf0d65 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following job failed but was 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. |
|
@JacobSzwejbka has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95605468. |
This PR needs a
|
Summary:
Delete capture_graph_for_xnnpack() and get_xnnpack_capture_config() which
were only used in test files and relied on the deprecated exir.capture API.
Migrate test_xnnpack_utils.py to use inline to_edge(export(...)) calls.
Remove the deprecated exports from xnnpack/init.py.
Differential Revision: D95605468