-
Notifications
You must be signed in to change notification settings - Fork 741
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
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. ❌ 1 New Failure, 2 Cancelled JobsAs of commit 71a28f8 with merge base 6da7bde ( NEW FAILURE - The following job has failed:
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 |
c891798 to
b2a1132
Compare
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
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
b2a1132 to
366eb51
Compare
|
This pull request was exported from Phabricator. Differential Revision: D77565018 |
Summary: Pull Request resolved: pytorch#12158 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
|
This pull request was exported from Phabricator. Differential Revision: D77565018 |
366eb51 to
71a28f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for fixing the memory issues and the thorough testing!
Differential Revision: D77565018 Pull Request resolved: pytorch#12158
Summary:
Continuing with migrating the pybindings API to expose the lower level ET API rather than just the
Modulelevel. 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_metawere added along withcalland__call__in order to easily callset_inputs,execute, andget_outputsall at once.The
method_metamethod forProgramwas also added.The
MethodMetabinding was modified to include a shared reference toPrograminstead ofModuleif theModuleAPI isn't used.The
ProgramandMethodclasses in__init__.pywere modified to hold their pybinding equivalent rather than Module.Differential Revision: D77565018