Commit b2a1132
Added Pybindings for Method.h/cpp (pytorch#12158)
Summary:
Continuing with migrating the pybindings API to expose the lower level ET API rather than just the `Module` level. The next step of that is to add pybindings for `Method`.
Bindings for the class Method and its methods `set_inputs`, `execute, get_outputs`, `get_attribute`, and `method_meta` were added along with `call` and `__call__` in order to easily call `set_inputs`, `execute`, and `get_outputs` all at once.
The `method_meta` method for `Program` was also added.
The `MethodMeta` binding was modified to include a shared reference to `Program` instead of `Module` if the `Module` API isn't used.
The `Program` and `Method` classes in `__init__.py` were modified to hold their pybinding equivalent rather than Module.
Differential Revision: D775650181 parent 6da7bde commit b2a1132
File tree
4 files changed
+990
-50
lines changed- extension/pybindings
- test
- runtime
4 files changed
+990
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments