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

Add QuantizeLinear and DequantizeLinear for mixed precision #93

Open
kpu opened this issue Sep 25, 2020 · 1 comment
Open

Add QuantizeLinear and DequantizeLinear for mixed precision #93

kpu opened this issue Sep 25, 2020 · 1 comment

Comments

@kpu
Copy link

kpu commented Sep 25, 2020

The current proposal has support for quantized types like tensor-quant8-asymm and some operators support them. Many networks run in mixed precision i.e. quantized output matrix multiply followed by logsoftmax in float32.

Propose adding https://github.com/onnx/onnx/blob/master/docs/Operators.md#DequantizeLinear and https://github.com/onnx/onnx/blob/master/docs/Operators.md#QuantizeLinear to make the quantized operators actually usable for many models.

@fdwr
Copy link
Collaborator

fdwr commented Aug 16, 2024

(4 years later 😲) quantize and dequantizeLinear are proposed here: #375 (comment). There's still some thought needed for the block size, given DequantizeLinear-21's new attribute (whether to do something similar/different/more generic/more limited...), but it has momentum.

Also related:

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

No branches or pull requests

4 participants