Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/OpenPPL/ppq
/ bestPractice.py
File
bestPractice.py
ppq/samples/Tutorial/bestPractice.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# ------------------------------------------------------------
2
# PPQ 最佳实践示例工程,在这个工程中,我们将向你展示如何充分调动 PPQ 的各项功能
3
# ------------------------------------------------------------
4
import
torch
Callers
nothing calls this directly
Calls
14
ENABLE_CUDA_KERNEL
Class · 0.85
quantize_torch_model
Function · 0.85
layerwise_error_analyse
Function · 0.85
graphwise_error_analyse
Function · 0.85
TorchExecutor
Class · 0.85
export_ppq_graph
Function · 0.85
convert_any_to_numpy
Function · 0.85
convert_any_to_torch_tensor
Function · 0.85
torch_snr_error
Function · 0.85
default_setting
Method · 0.80
to
Method · 0.80
collate_fn
Function · 0.70
Tested by
no test coverage detected