-
Notifications
You must be signed in to change notification settings - Fork 608
Added Pybindings for Method.h/cpp #12158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12158
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 Cancelled JobsAs of commit c891798 with merge base ae9d1eb ( CANCELLED JOBS - The following jobs were cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D77565018 |
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: D77565018
e5148d6
to
27cd708
Compare
This pull request was exported from Phabricator. Differential Revision: D77565018 |
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: D77565018
27cd708
to
c891798
Compare
This pull request was exported from Phabricator. Differential Revision: D77565018 |
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 forMethod
.Bindings for the class Method and its methods
set_inputs
,execute, get_outputs
,get_attribute
, andmethod_meta
were added along withcall
and__call__
in order to easily callset_inputs
,execute
, andget_outputs
all at once.The
method_meta
method forProgram
was also added.The
MethodMeta
binding was modified to include a shared reference toProgram
instead ofModule
if theModule
API isn't used.The
Program
andMethod
classes in__init__.py
were modified to hold their pybinding equivalent rather than Module.Differential Revision: D77565018