dx-com 2.4.0


pip install dx-com

  Latest version

Released: Jul 23, 2026


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.

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)