-
Notifications
You must be signed in to change notification settings - Fork 688
Support exp op in XNNPACK backend #11803
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/11803
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 080c3df with merge base 124758e ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
9a33a39
to
5e418e0
Compare
@pytorchbot label "release notes: none" |
108eaa5
to
27dce32
Compare
@leafs1 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@leafs1 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@leafs1 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
### Summary This PR adds support for the exp operator in ExecuTorch via XNNPACK, enabling optimized execution of torch.exp on the XNNPACK backend. The implementation includes updates to operator configuration, serialization, and runtime handling. The exp operator is now properly registered in the XNNPACK partition config and mapped to XNNPACK's xnn_create_exp_operator API in the compiler. ### Test plan I added a new test class TestExp that is a simple torch model with an exp op. It then asserts that the XNNPACK delegate was called while executing the exp op instead of the torch default exp op.
Summary
This PR adds support for the exp operator in ExecuTorch via XNNPACK, enabling optimized execution of torch.exp on the XNNPACK backend. The implementation includes updates to operator configuration, serialization, and runtime handling. The exp operator is now properly registered in the XNNPACK partition config and mapped to XNNPACK's xnn_create_exp_operator API in the compiler.
Test plan
I added a new test class TestExp that is a simple torch model with an exp op. It then asserts that the XNNPACK delegate was called while executing the exp op instead of the torch default exp op.