Skip to content

Migrate external callers from exir.capture to torch.export + to_edge - #1061

Open
JacobSzwejbka wants to merge 1 commit into
facebookincubator:mainfrom
JacobSzwejbka:export-D95605504
Open

JacobSzwejbka wants to merge 1 commit into
facebookincubator:mainfrom
JacobSzwejbka:export-D95605504

Conversation

@JacobSzwejbka

Copy link
Copy Markdown

Summary:
Update callers outside executorch/ that used exir.capture() or CaptureConfig:

Key patterns:

  • exir.capture(m, x).to_edge() → to_edge(export(m, x, strict=True))
  • _capture_legacy_do_not_use(m, x) → export(m, x, strict=True)
  • EdgeProgramManager.transform() requires passes in a list, not varargs

Differential Revision: D95605504

Summary:
Update callers outside executorch/ that used exir.capture() or CaptureConfig:


Key patterns:
- exir.capture(m, x).to_edge() → to_edge(export(m, x, strict=True))
- _capture_legacy_do_not_use(m, x) → export(m, x, strict=True)
- EdgeProgramManager.transform() requires passes in a list, not varargs

Differential Revision: D95605504
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 22, 2026
@meta-codesync

meta-codesync Bot commented Apr 22, 2026

Copy link
Copy Markdown

@JacobSzwejbka has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95605504.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant