Skip to main content

onnxruntime-easy

Simplified APIs for onnxruntime

Usage

import onnxruntime_easy as ort_easy
import numpy as np
import ml_dtypes

# Simple `load` method that handles setting up ONNX Runtime inference session
# All session options discoverable in the load function.
model = ort_easy.load("model.onnx", device="cpu")  # You can control the providers if the default is not what you need
# Supports all ONNX dtypes via ml_dtypes or dlpack
input = ort_easy.ort_value(np.random.rand(1, 3, 299, 299).astype(ml_dtypes.bfloat16))
output = model(input)

# Works with any ndarray that implements the __array__ interface
# Or automatically share data on device (like cuda) with dlpack
import torch
model = ort_easy.load("model.onnx", device="cuda")
input_tensor = ort_easy.ort_value(torch.rand(1, 3, 299, 299, device="cuda"))
output = model(input_tensor)

# Use a context manager to control the outputs you get
with model.set_outputs("output1"):
    output1 = model(input_tensor)

Download files

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

Source Distribution

onnxruntime_easy-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onnxruntime_easy-0.1.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file onnxruntime_easy-0.1.2.tar.gz.

File metadata

  • Download URL: onnxruntime_easy-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for onnxruntime_easy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b83769803f8516972bbec9c417477fac231a58a35b6b6bb46e3327b6ae1c050f
MD5 241fcc0772779ef03a967afc193e0ebf
BLAKE2b-256 a67ae1637158b1f2ecc9cd696beec9895838a3c386649b05d240ffb27fadf042

See more details on using hashes here.

Provenance

The following attestation bundles were made for onnxruntime_easy-0.1.2.tar.gz:

Publisher: main.yml on justinchuby/onnxruntime-easy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file onnxruntime_easy-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for onnxruntime_easy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f32b8573d3b189f48fe55ced90a5442b5b29ff20c1d10829e1e021e8e424a7d5
MD5 121927b481e9fa44d168277c3c42b1af
BLAKE2b-256 a3782520f27d76646e48c58eb39a2c3287adf9a2363a9c7227fab3642c29849a

See more details on using hashes here.

Provenance

The following attestation bundles were made for onnxruntime_easy-0.1.2-py3-none-any.whl:

Publisher: main.yml on justinchuby/onnxruntime-easy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page