You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make edge dialect program a first class citizen (#508)
Summary:
Pull Request resolved: #508
As building out the Inspector APIs, we realized that we want to make edge dialect program a first class citizen of ETRecord, and also require executorch program when constructing an ETRecord (used to be optional).
Reviewed By: tarun292
Differential Revision: D49436040
fbshipit-source-id: 59986e75d3da141502066d152925119998426d4e
Generates an ETRecord from the given objects and saves it to the given path.
26
-
The objects that will be serialized to an ETRecord are all the graph modules present in the export_modules dict and also the graph module present in the program object, which is the closest graph module representation of what is eventually run on the device.
27
+
The objects that will be serialized to an ETRecord are all the graph modules present in the export_modules dict, the graph module present in the edge dialect program object,
28
+
and also the graph module present in the executorch program object, which is the closest graph module representation of what is eventually run on the device.
27
29
28
30
In addition to all the graph modules we also serialize the program buffer which the users can provide to the ExecuTorch runtime to run the model.
29
31
30
32
#### Parameters:
31
33
-`etrecord_path` : Path to where the ETRecord file will be saved to.
32
-
-`program`: ExecutorchProgram or MultiMethodExecutorchProgram for this model returned by the call to to_executorch()
34
+
-`edge_dialect_program`: ExirExportedProgram for this model returned by the call to to_edge()
35
+
-`executorch_program`: ExecutorchProgram or MultiMethodExecutorchProgram for this model returned by the call to to_executorch()
33
36
-`export_modules`: Dictionary of graph modules with the key being the user provided name and the value is the corresponding exported module. The exported graph modules can be either the output of capture() or to_edge().
0 commit comments