Closed YouCaiJun98 closed 3 years ago
You need to register quantizer in custom_quantizer.py in order to specify how to insert quant nodes in this platform. For test, just register it on ModelQuantizer.
need to register quantizer in custom_quantizer.py in order to specify how to insert quant nodes in this platform. For test, just register it on ModelQuantizer.
I found it in the repo as soon as I released my issue, anyway, thanks for your quick response XD
NICE work! I tried to add a new type of backend according to my quantization needs, and I get stuck with some trouble. I just add my own backend name, say, 'dummy_type' to the class BackendType in prepare_by_platform.py, like:
and modified the corresponding ParamsTable:
However, when I reinstalled my env(updated the mqbench pack), I got this error:
It looks like that DEFAULT_MODEL_QUANTIZER can't recognize my own backend type, and I guess I might miss some other settings. So what should I do to fix this problem? And will you release some docs to help users set their own backend type? Thanks for your help ;)