Skip to main content

Wonnx is an ONNX runtime based on wgpu aimed at being a universal GPU runtime, written in Rust.

Project description

WONNX Python module

This crate allows using WONNX from Python.

Building

To build the Python module for development:

cd wonnx-py
python3 -m venv .venv
source .venv/bin/activate
pip install maturin
maturin develop

You can also use make python from the project root. If you want to specify a specific version of python, use: make python PYTHON=python3.10 (e.g. if you used brew install python@3.10 to install Python 3.10 on macOS).

Testing

For testing, additional dependencies are required. First, ensure you have the protobuf compiler (protoc) installed and in your PATH (on macOS, you can use brew install protobuf and possibly brew link protobuf to install it). Nextl, install Python dependencies:

pip install -r requirements.txt

To test a specific operator, you can use the following command:

OP_TESTED=reduce pytest tests/test_specific_op.py

To test the current set of fully tested op:

python tests/test_onnx_backend.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wonnx-0.5.1.tar.gz (17.2 kB view hashes)

Uploaded Source

Built Distributions

wonnx-0.5.1-cp37-abi3-win_amd64.whl (3.5 MB view hashes)

Uploaded CPython 3.7+ Windows x86-64

wonnx-0.5.1-cp37-abi3-win32.whl (3.2 MB view hashes)

Uploaded CPython 3.7+ Windows x86

wonnx-0.5.1-cp37-abi3-musllinux_1_2_x86_64.whl (4.9 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ x86-64

wonnx-0.5.1-cp37-abi3-musllinux_1_2_i686.whl (4.9 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

wonnx-0.5.1-cp37-abi3-musllinux_1_2_armv7l.whl (4.8 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

wonnx-0.5.1-cp37-abi3-musllinux_1_2_aarch64.whl (4.8 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

wonnx-0.5.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

wonnx-0.5.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (5.4 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

wonnx-0.5.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (5.8 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

wonnx-0.5.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (6.0 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64

wonnx-0.5.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.6 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

wonnx-0.5.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.7 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

wonnx-0.5.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (5.0 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

wonnx-0.5.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (6.5 MB view hashes)

Uploaded CPython 3.7+ macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

wonnx-0.5.1-cp37-abi3-macosx_10_7_x86_64.whl (3.4 MB view hashes)

Uploaded CPython 3.7+ macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page