Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/OpenPPL/ppq
/ custimize_quant_func.py
File
custimize_quant_func.py
ppq/samples/custimize_quant_func.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# This Example shows you how to replace quantization function with your own quant delegator.
2
3
from
typing
import
Iterable
4
Callers
nothing calls this directly
Calls
8
quantize_torch_model
Function · 0.90
TorchExecutor
Class · 0.85
to
Method · 0.80
pplcuda_setting
Method · 0.80
register_quantize_delegate
Method · 0.80
remove_quantize_delegate
Method · 0.80
load_calibration_dataset
Function · 0.70
forward
Method · 0.45
Tested by
no test coverage detected