Rename export API to compile
Open
@abhinaykukkadapu is already working on this.
Since Jul 9, 2025.
- Dominant language
- Python
- Stars
- 5k
- Forks
- 1.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 581
Description
🚀 The feature, motivation and pitch
Seems like there were previous discussions to rename export() API which takes in recipes to compile(..)
https://github.com/pytorch/executorch/blob/main/export/export.py#L429
def export(
model: Union[nn.Module, Dict[str, nn.Module]],
example_inputs: Union[
List[tuple[torch.Tensor, ...]], Dict[str, List[tuple[torch.Tensor, ...]]]
],
export_recipe: ExportRecipe,
name: Optional[str] = None,
dynamic_shapes: Optional[Union[Any, Dict[str, Any]]] = None,
constant_methods: Optional[Union[Dict[str, Callable]]] = None,
artifact_dir: Optional[str] = None,
) -> "ExportSession":
CC: @kimishpatel, @cbilgin, @JacobSzwejbka
Alternatives
No response
Additional context
No response
RFC (Optional)
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.