-
Notifications
You must be signed in to change notification settings - Fork 684
Add Pybindings for Program.h/cpp #12016
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/12016
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit fa7e447 with merge base 3ba0466 ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D77388495 |
@Conarnar has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@pytorchbot label "release notes: none" |
@Conarnar has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
7454544
to
9b95924
Compare
Summary: Today our python apis in executorch.runtime are implemented off of extension/pybindings which only offers a module api. We would like to migrate to having the lower level ET api exposed to python directly and then writing the module api in python. The first step to this is adding pybindings for Program. Bindings for the class Program and its methods num_methods and get_method_name were added. Test Plan: Tests were added to `extension/pybindings/test/make_test.py` 1. test_program_methods_one -- verifies num_methods and get_method_name works with one method 2. test_program_methods_multi -- verifies num_methods and get_method_name works with multiple methods 3. test_program_method_index_out_of_bounds -- verifies get_method_name raises a runtime error if index is out of bounds Rollback Plan: Reviewed By: JacobSzwejbka Differential Revision: D77388495 Pulled By: Conarnar
This pull request was exported from Phabricator. Differential Revision: D77388495 |
Summary: Today our python apis in executorch.runtime are implemented off of extension/pybindings which only offers a module api. We would like to migrate to having the lower level ET api exposed to python directly and then writing the module api in python. The first step to this is adding pybindings for Program. Bindings for the class Program and its methods num_methods and get_method_name were added. Test Plan: Tests were added to `extension/pybindings/test/make_test.py` 1. test_program_methods_one -- verifies num_methods and get_method_name works with one method 2. test_program_methods_multi -- verifies num_methods and get_method_name works with multiple methods 3. test_program_method_index_out_of_bounds -- verifies get_method_name raises a runtime error if index is out of bounds Rollback Plan: Reviewed By: JacobSzwejbka Differential Revision: D77388495 Pulled By: Conarnar
9b95924
to
fa7e447
Compare
This pull request was exported from Phabricator. Differential Revision: D77388495 |
Differential Revision: D77388495 Pull Request resolved: pytorch#12016
Differential Revision: D77388495 Pull Request resolved: pytorch#12016
Summary
Today our python apis in executorch.runtime are implemented off of extension/pybindings which only offers a module api. We would like to migrate to having the lower level ET api exposed to python directly and then writing the module api in python. The first step to this is adding pybindings for Program.
Bindings for the class Program and its methods num_methods and get_method_name were added.
Test plan
Tests were added to
extension/pybindings/test/make_test.py