Skip to content
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

[TOPI][Hexagon] Implement quantized elementwise for hexagon #12606

Merged

Conversation

trahman-quic
Copy link
Contributor

@trahman-quic trahman-quic commented Aug 25, 2022

This PR adds implementation for quantized elementwise ops (add, subtract, multiply) for hexagon with support of broadcasting. The quantization method uses fixed-point number to replace floating point instructions. In addition to the implementation, it includes appropriate schedules for uint8 layout. It also adds test case for these ops in uint8 dtype.

cc @mehrdadh

@trahman-quic
Copy link
Contributor Author

Hi, @mehrdadh @kparzysz-quic @TejashShah this PR is ready for review. Thank you

@mehrdadh
Copy link
Member

mehrdadh commented Sep 1, 2022

@trahman-quic @jverma-quic thanks for the contribution and review!
I'll wait for @jverma-quic's review. Also, please change the PR description to show the purpose of this PR.

@trahman-quic trahman-quic force-pushed the trahman-quic/quant-elementwise branch 2 times, most recently from 1d89d43 to 5d06698 Compare September 8, 2022 16:55
Copy link
Contributor

@jverma-quic jverma-quic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, Tasmia! It looks good to me.

@trahman-quic
Copy link
Contributor Author

trahman-quic commented Sep 8, 2022

Thanks for the PR, Tasmia! It looks good to me.

Thank you @jverma-quic .
@kparzysz-quic @mehrdadh, please let me know if it looks good to merge after the CI tests. Thanks

@kparzysz-quic kparzysz-quic merged commit 2eed663 into apache:main Sep 9, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…2606)

* [TOPI][Hexagon] Add test and schedule for uint8 resize2d

* Fix correctness issue

* Reformat

* [TOPI][Hexagon] Implement quantized elementwise

* Reformat

* Address review comments

* Reformat

* Revert

* Address review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants