cancel
Showing results for 
Search instead for 
Did you mean: 

Pytorch 转ONNX后进行静态量化后输入报内部错误,尝试两个不同模型,均为这个错误

lv0
Associate

lv0_0-1713966079302.png


内部错误:必须同时设置刻度、零和量化器

2 REPLIES 2
lv0
Associate

这里面是我测试的两个模型,望回复

fauvarque.daniel
ST Employee

Please post in English on this forum.

The tool can report this error when the quantization is not done according to what is described in the documentation.

We support Int8 per channel static quantization.

You can find more details including sample quantization code in the documentation embedded in the package

Documentation/quantization.html

Regards

Daniel


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.