xnnpack
xnnpack
¶
XNNPACK backend for PT2E quantization.
XNNPACKPT2EBackend
¶
Bases: BasePT2EBackend
XNNPACK PT2E backend for ExecuTorch deployment.
Initialize XNNPACK PT2E quantization settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
is_dynamic
|
bool
|
Use dynamic activation quantization. |
False
|
is_qat
|
bool
|
Use quantization-aware training observers. |
False
|
is_per_channel
|
bool
|
Use per-channel symmetric weight quantization. |
True
|
Source code in src/versatil/quantization/pt2e/backends/xnnpack.py
create_quantizer
¶
Create an XNNPACK quantizer targeting a module path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
module_path
|
str
|
Dotted path to the target submodule. Empty string means global quantization. |
required |
Returns:
| Type | Description |
|---|---|
Quantizer
|
Configured XNNPACK quantizer. |