MCPcopy
hub / github.com/OpenPPL/ppq / bypass_nms.py

File bypass_nms.py

ppq/samples/bypass_nms.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# ---------------------------------------------------------------
2# 这个脚本向你展示了如何使用绕过那些跟量化没什么关系的算子
3# 当你的算子处于网络的最后,其后也没有什么需要量化的算子了
4# 你就可以给它定义一个假的 forward 函数,从而帮助 PPQ 完成量化

Callers

nothing calls this directly

Calls 6

load_onnx_graphFunction · 0.85
quantize_native_modelFunction · 0.85
export_ppq_graphFunction · 0.85
default_settingMethod · 0.80
load_calibration_datasetFunction · 0.70

Tested by

no test coverage detected