executorch_xnnpack
executorch_xnnpack
¶
ExecuTorch XNNPACK deployment backend for .pte artifacts, to deploy policies on mobile Arm and x86 CPUs, ref. https://docs.pytorch.org/executorch/main/backends/xnnpack/xnnpack-overview.html.
ExecutorchXNNPACKBackend
¶
Bases: DeploymentBackend
Backend that lowers exported programs to ExecuTorch XNNPACK.
Initialize XNNPACK deployment settings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
max_batch_size
|
int
|
Upper bound for dynamic batch execution in the serialized ExecuTorch program. |
required |
Source code in src/versatil/post_training_compression/deployment_backends/executorch_xnnpack.py
export
¶
Lower a PyTorch module into an ExecuTorch .pte buffer.