DXCOM Package
Project Links
Meta
Author: Jangmin Son
Requires Python: <3.15,>=3.8
Classifiers
Programming Language
- Python :: 3
License
- Other/Proprietary License
Operating System
- OS Independent
DXCOM
DXCOM is a compiler SDK by DEEPX that compiles ONNX models into optimized .dxnn binaries for DEEPX NPU (Neural Processing Unit).
It performs hardware-aware quantization, graph optimization, and code generation — all in a single pipeline. The compiled .dxnn file can be deployed and executed on DEEPX NPU via DX-RT (DEEPX Runtime).
Installation
pip install dx-com
Requirements: Python 3.8 – 3.14, Linux (x86_64)
Quick Start
CLI
dxcom -m model.onnx -c config.json -o output/
| Argument | Description |
|---|---|
-m |
Path to the ONNX model file |
-c |
Path to the JSON configuration file |
-o |
Output directory for compiled artifacts |
--opt_level |
Optimization level: 0 (fast) or 1 (higher accuracy, default) |
--gen_log |
Generate a compilation log |
-v |
Show version |
Python API
import dx_com
dx_com.compile(
model="model.onnx",
config="config.json",
output_dir="output/",
opt_level=1,
)
Parameters
| Parameter | Type | Description |
|---|---|---|
model |
str |
Path to the ONNX model file |
config |
str |
Path to the JSON configuration file |
output_dir |
str |
Output directory for compiled artifacts |
opt_level |
int |
Optimization level: 0 (fast) or 1 (higher accuracy). Default: 1 |
calibration_method |
str |
Calibration method. Options: minmax, percentile, mse, entropy |
aggressive_partitioning |
bool |
Enable aggressive CPU/NPU partitioning. Default: False |
Documentation
For detailed technical documentation and user manual, visit DEEPX Developer Portal.
License
This software is the proprietary property of DEEPX Ltd. and is provided exclusively to authorized customers with DEEPX NPU hardware. See LICENSE for details.
Wheel compatibility matrix
| Platform | CPython 3.8 | CPython 3.9 | CPython 3.10 | CPython 3.11 | CPython 3.12 | CPython 3.13 | CPython 3.14 |
|---|---|---|---|---|---|---|---|
| manylinux_2_31_x86_64 |
Files in release
dx_com-2.4.0-cp310-cp310-manylinux_2_31_x86_64.whl (79.3MiB)
dx_com-2.4.0-cp311-cp311-manylinux_2_31_x86_64.whl (79.1MiB)
dx_com-2.4.0-cp312-cp312-manylinux_2_31_x86_64.whl (81.0MiB)
dx_com-2.4.0-cp313-cp313-manylinux_2_31_x86_64.whl (81.2MiB)
dx_com-2.4.0-cp314-cp314-manylinux_2_31_x86_64.whl (81.3MiB)
dx_com-2.4.0-cp38-cp38-manylinux_2_31_x86_64.whl (78.7MiB)
dx_com-2.4.0-cp39-cp39-manylinux_2_31_x86_64.whl (78.8MiB)
Extras:
Dependencies:
mypy
pybind11
(~=2.13.1)
numpy
(>=1.24.4)
onnx
(>=1.16.1)
onnx2torch
(~=1.5.15)
onnxruntime
(>=1.18.0)
opencv-python
(>=4.10.0.84)
protobuf
(>=5.26.0)
Pillow
(>=10.4.0)
tqdm
scipy
(>=1.10.1)
torch
(>=2.3.0)
torchvision
(>=0.18.0)
PyYAML
(>=6.0)
pycryptodome
(~=3.20.0)
ordered_set
(~=4.1.0)
sortedcontainers
(~=2.4.0)
cloudpickle
(~=3.1.1)
Rtree
(~=1.3.0)
jinja2
(>=3.1.0)
typing_extensions
(<4.14)