JDAI-CV / DNNLibrary

Daquexian's NNAPI Library. ONNX + Android NNAPI
Apache License 2.0
346 stars 59 forks source link

Bad organized Quantization code #80

Open jcao-ai opened 3 years ago

jcao-ai commented 3 years ago

https://github.com/JDAI-CV/DNNLibrary/blob/e17f11e966b2cce7d747799b76bb9843813d4b01/quant.py#L269

Name of input tensor data is presumed which is not appropriate for most other model.

https://github.com/JDAI-CV/DNNLibrary/blob/e17f11e966b2cce7d747799b76bb9843813d4b01/quant.py#L216

Also there shouldn't be any presume that model needs normalization with mean/dev.