Commit 1b593ad
authored
Recipe and Input class definitions with e2e export (#10034)
Based on the discussion in
#9027
This PR adds the executorch.export API and all the supporting components
required for it. At a high level the executorch.export API takes in a
model, example inputs and a recipe, then underneath the hood executes
all the steps required to export, quantize and lower the model based on
the recipe.
The pipeline consists of a staged setup where each major step in the
process such as Export, Quantization etc. is listed as a separate stage
and a chain of these is formed and then executed. The result of this
will be that we'll get a PTE file which can then be executed on device.
The major new components added in this PR are:
- class definition for ExportSession and ExportRecipe
- Definitions for each stage in the process
- executorch.export API which will return a session object that the user
can then use to get access to the PTE file, run the model via
pybindings, print delegation info etc.1 parent d67fb52 commit 1b593ad
File tree
7 files changed
+963
-2
lines changed- export
- tests
- runtime
7 files changed
+963
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments