-
Notifications
You must be signed in to change notification settings - Fork 608
Enable sin, cos op for QNN HTP backend #6591
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
Nick-Wei
commented
Oct 31, 2024
- add sin / cos to op_builder
- change quantizer to adopt new operator
- add test cases for both fp16 & quantized version
- fix bug in capture_program
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6591
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit d84615a with merge base ac8bf78 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Hi @Nick-Wei! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
Hi @haowhsu-quic, this PR enables |
f6b9077
to
bff3cfa
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.
Please perform git submodule update
and label your PR as requested, thanks.
bff3cfa
to
c0e4a64
Compare
Hi, @haowhsu-quic, this PR enables the sin and cos operators, which are used in my own model. Additionally, I have added a description for the build_executorch_binary function. |
@pytorchbot label "release notes: Added support for sin and cos operations" |
Didn't find following labels among repository labels: release notes: Added support for sin and cos operations |
@pytorchbot label "release notes: feature" |
Didn't find following labels among repository labels: release notes: feature |
@pytorchbot label "feature" |
backends/qualcomm/utils/utils.py
Outdated
@@ -299,6 +299,7 @@ def get_decomp_table() -> Dict[torch._ops.OperatorBase, Callable]: | |||
def _transform( | |||
edge_program: ExportedProgram, custom_pass_config: FrozenSet[str] = frozenset() | |||
) -> ExportedProgram: | |||
custom_pass_config = custom_pass_config or {} |
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.
Since custom_pass_config
is now default constructed, could you remove this line?
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.
It has already been removed, thank you.
c0e4a64
to
583f59f
Compare
@pytorchbot label "feature" |
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 to me, thank you.
- add sin / cos to op_builder - change quantizer to adopt new operator - add test cases for both fp16 & quantized version - write a description for the build_executorch_binary function."
583f59f
to
d84615a
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.
Oops somehow I totally miss the PR, thank you for contributing!
@cccclai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |