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

quanitze operation expanded to take const argument #6127

Merged
merged 2 commits into from
Aug 28, 2020

Conversation

d-smirnov
Copy link
Contributor

@d-smirnov d-smirnov commented Jul 23, 2020

This PR adds support of constant value for quantize operation.

https://www.tensorflow.org/lite/performance/quantization_spec#references

QUANTIZE (Requantization)
Input 0:
data_type : int8
range : [-128, 127]
granularity: per-tensor
Output 0:
data_type : int8
range : [-128, 127]
granularity: per-tensor

The deepspeech model has quantize operations with constant values

@tqchen
Copy link
Member

tqchen commented Aug 10, 2020

cc @anijain2305 please followup

used get_tensor_expr, added _test_forward_quantize_dequantize_const test
@anijain2305 anijain2305 merged commit 4c9a391 into apache:master Aug 28, 2020
@anijain2305
Copy link
Contributor

Thanks for the changes @d-smirnov This is merged!

kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 17, 2020
* quanitze operation expanded to take const argument

* amendments

used get_tensor_expr, added _test_forward_quantize_dequantize_const test
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 18, 2020
* quanitze operation expanded to take const argument

* amendments

used get_tensor_expr, added _test_forward_quantize_dequantize_const test
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 18, 2020
* quanitze operation expanded to take const argument

* amendments

used get_tensor_expr, added _test_forward_quantize_dequantize_const test
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