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

QNN quantize and dequantize operators. #3745

Merged
merged 13 commits into from
Aug 16, 2019

Conversation

shoubhik
Copy link
Contributor

@shoubhik shoubhik commented Aug 9, 2019

This is a followup PR for #3531. It has the implementations for the Quantize and Dequantize operators.

python/tvm/relay/qnn/op/qnn.py Outdated Show resolved Hide resolved
python/tvm/relay/qnn/op/qnn.py Outdated Show resolved Hide resolved
python/tvm/relay/qnn/op/qnn.py Outdated Show resolved Hide resolved
python/tvm/relay/qnn/op/qnn.py Outdated Show resolved Hide resolved
python/tvm/relay/qnn/op/qnn.py Outdated Show resolved Hide resolved
src/relay/qnn/op/quantize_op.cc Outdated Show resolved Hide resolved
src/relay/qnn/op/quantize_op.cc Outdated Show resolved Hide resolved
src/relay/qnn/op/quantize_op.cc Outdated Show resolved Hide resolved
src/relay/qnn/op/requantize.cc Outdated Show resolved Hide resolved
tests/python/relay/test_qnn_dequantize.py Show resolved Hide resolved
Copy link
Contributor

@anijain2305 anijain2305 left a comment

Choose a reason for hiding this comment

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

Minor comments.

@shoubhik
Copy link
Contributor Author

@u99127, @FrozenGene, @jackwish, @tqchen can you take a look at this PR.

@FrozenGene
Copy link
Member

@u99127, @FrozenGene, @jackwish, @tqchen can you take a look at this PR.

Hi @shoubhik I have a little busy today. I could have time to look tomorrow. Thanks.

Copy link
Contributor

@zhenhuaw-me zhenhuaw-me left a comment

Choose a reason for hiding this comment

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

LGTM, only some naming things. Thank you.

python/tvm/relay/qnn/op/qnn.py Outdated Show resolved Hide resolved
python/tvm/relay/qnn/op/qnn.py Outdated Show resolved Hide resolved
src/relay/qnn/op/dequantize.cc Outdated Show resolved Hide resolved
src/relay/qnn/op/quantize_op.cc Outdated Show resolved Hide resolved
src/relay/qnn/op/quantize_op.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@Leo-arm Leo-arm left a comment

Choose a reason for hiding this comment

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

Jackwish's comments make sense to me but other than that LGTM.

@shoubhik
Copy link
Contributor Author

Resolved all the style related comments.

@anijain2305
Copy link
Contributor

@tqchen Can you please review and merge this, given we have approvals from all the stakeholders.

@tqchen
Copy link
Member

tqchen commented Aug 14, 2019

Sorry I will be traveling in the incoming weeks, perhaps @ZihengJiang @vinx13 can help manage QNN related PRs

@shoubhik
Copy link
Contributor Author

@ZihengJiang @vinx13 can you review and merge this PR.

Copy link
Member

@vinx13 vinx13 left a comment

Choose a reason for hiding this comment

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

minor change and please get CI passed

src/relay/qnn/op/quantize.cc Outdated Show resolved Hide resolved
@vinx13
Copy link
Member

vinx13 commented Aug 14, 2019

@shoubhik Please resolve the conflict (I have merged the other PR)

# Conflicts:
#	python/tvm/relay/qnn/op/qnn.py
@shoubhik
Copy link
Contributor Author

There is a dependency on #3779. Once it is merged the test case can pass.

@anijain2305
Copy link
Contributor

@vinx13 Can this be merged now?

@shoubhik
Copy link
Contributor Author

@vinx13 can it be merged now?

@vinx13 vinx13 merged commit d3eb9cb into apache:master Aug 16, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Aug 16, 2019
* QNN quantize and dequantize operators.

* addressing review comments.

* addressing review comments.

* Adding new line at the end of the file.

* Adhering to styling guidelines.

* Adding name to contributors.

* Fixing lint issue.

* Fixing file name.

* Removing unnecessary code.
anijain2305 pushed a commit to anijain2305/tvm that referenced this pull request Aug 22, 2019
* QNN quantize and dequantize operators.

* addressing review comments.

* addressing review comments.

* Adding new line at the end of the file.

* Adhering to styling guidelines.

* Adding name to contributors.

* Fixing lint issue.

* Fixing file name.

* Removing unnecessary code.
wweic pushed a commit to neo-ai/tvm that referenced this pull request Sep 6, 2019
* QNN quantize and dequantize operators.

* addressing review comments.

* addressing review comments.

* Adding new line at the end of the file.

* Adhering to styling guidelines.

* Adding name to contributors.

* Fixing lint issue.

* Fixing file name.

* Removing unnecessary code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants