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

[OpenCLML] More ops and network coverage #12762

Merged
merged 1 commit into from
Sep 14, 2022
Merged

Conversation

srkreddy1238
Copy link
Contributor

@srkreddy1238 srkreddy1238 commented Sep 13, 2022

Added operators pooling (avg, max), binary operators (add, subtract, multiply, min, max) and concat.
Clip operator with min=0 and max=6 is remapped to relu6 to take advantage of CLML acceleration
without sub graphing this to fallback path.

Added new test cases for above listed operators and also end-to-end network test cases for Resnet50
& InceptionV3.

CLML support FP16 arithmetic mode which gives significant performance boost over FP32. This PR
enhances FP16 usage based on Operator datatype in relay graph.

Co-authored-by: Krishna Raju quic_kvegiraj@quicinc.com
Co-authored-by: Shwetank Singh quic_shwesing@quicinc.com

@srkreddy1238 srkreddy1238 changed the title [OpenCLML] More ops and network coverage. [OpenCLML] More ops and network coverage Sep 13, 2022
Copy link
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

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

Hi @srkreddy1238, thanks for the PR. Can you improve the commit message with the actual operators are being added?

@gromero
Copy link
Contributor

gromero commented Sep 13, 2022

Hi @srkreddy1238, thanks for the PR. Can you improve the commit message with the actual operators are being added?

@srkreddy1238 You can look at https://github.com/apache/tvm/blob/main/docs/contribute/pull_request.rst#commit-message-guideline for some guidelines on how to do that. HTH. Cheers.

Added operators pooling (avg, max), binary operators (add, subtract, multiply, min, max) and concat.
Clip operator with min=0 and max=6 is remapped to relu6 to take advantage of CLML acceleration
without sub graphing this to fallback path.

Added new test cases for above listed operators and also end-to-end network test cases for Resnet50
& InceptionV3.

CLML support FP16 arithmetic mode which gives significant performance boost over FP32. This PR
enhances FP16 usage based on Operator datatype in relay graph.

Co-authored-by: Krishna Raju quic_kvegiraj@quicinc.com
Co-authored-by: Shwetank Singh quic_shwesing@quicinc.com
@srkreddy1238
Copy link
Contributor Author

@leandron pls take a look.

Copy link
Contributor

@leandron leandron left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @srkreddy1238 @gromero!

@leandron leandron merged commit 2aa0d1f into apache:main Sep 14, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
Added operators pooling (avg, max), binary operators (add, subtract, multiply, min, max) and concat.
Clip operator with min=0 and max=6 is remapped to relu6 to take advantage of CLML acceleration
without sub graphing this to fallback path.

Added new test cases for above listed operators and also end-to-end network test cases for Resnet50
& InceptionV3.

CLML support FP16 arithmetic mode which gives significant performance boost over FP32. This PR
enhances FP16 usage based on Operator datatype in relay graph.

Co-authored-by: Krishna Raju quic_kvegiraj@quicinc.com
Co-authored-by: Shwetank Singh quic_shwesing@quicinc.com
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.

3 participants