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

Run adaround failed with a toy onnx model #2

Open
pycoco opened this issue May 17, 2023 · 2 comments
Open

Run adaround failed with a toy onnx model #2

pycoco opened this issue May 17, 2023 · 2 comments

Comments

@pycoco
Copy link

pycoco commented May 17, 2023

when i try to quant a model with adaround. But below error occurs:

onnxruntime.capi.onnxruntime_pybind11_state.InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : This is an invalid model. Type Error: Type 'tensor(uint8)' of input parameter (input) of operator (QuantizeLinear) in node (QuantizeLinear0) is invalid.

image

@gushiqiao
Copy link
Contributor

This is because the 'input' variable is of type uint8, and the quantization operator we use in Dipoorlet is quantizelinear-13( https://github.com/onnx/onnx/blob/main/docs/Changelog.md#quantizelinear -13) . It only supports input tensor types of int32 and float, so I suggest you change the input to int32 or float before trying again.

@pycoco
Copy link
Author

pycoco commented May 19, 2023

ok, thanks very much

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

No branches or pull requests

2 participants