Migrate executorch/ tests from exir.capture to torch.export + to_edge#18111
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18111
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Pending, 2 Unrelated FailuresAs of commit e1aa5b3 with merge base 090af6c ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs 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. |
|
@JacobSzwejbka has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95605454. |
This PR needs a
|
cc94a90 to
5206195
Compare
…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
…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
…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
bc27960 to
98bcae6
Compare
…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
98bcae6 to
993a8b0
Compare
…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
993a8b0 to
fa0864d
Compare
…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
…pytorch#18111) Summary: Pull Request resolved: pytorch#18111 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
fa0864d to
a393138
Compare
…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 Reviewed By: Gasoonjia Differential Revision: D95605454
a393138 to
2bb8ec4
Compare
…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 Reviewed By: Gasoonjia Differential Revision: D95605454
2bb8ec4 to
2d9f225
Compare
…pytorch#18111) Summary: Pull Request resolved: pytorch#18111 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 Reviewed By: Gasoonjia Differential Revision: D95605454
2d9f225 to
e1aa5b3
Compare
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()
Key changes:
to_edge(export(model, inputs, strict=True))
test_delegate_map_builder (handle numbering changed)
since torch.export always produces lifted graphs
Differential Revision: D95605454