Files
zeekay 349ed099f6 onnxgo: the module is hanzo.ai/onnxgo
The import path a reader types is the one the org actually owns, rather than the
forge that happens to host the bytes. hanzo.ai serves the go-import meta and
points it at the same repository, so nothing about where the code lives changes.

Rewritten by ROLE, not by string: the module line, the import in each code
sample, and the pkg.go.dev address the docs now live at. The two
`hanzoai/onnxgo-examples` links stay — that is a different repository, and a
plain substitution would have invented `hanzo.ai/onnxgo-examples`, which is not
a module at all.

The `// Deprecated:` notice belongs to v1.31.1 and does not travel here: it is
what the OLD path says about the move, and this commit is no longer that path.
2026-08-23 19:30:58 -07:00

679 B

hanzoai/onnxgo — ONNX Runtime Go Bindings

High-performance Go bindings for Microsoft ONNX Runtime. GPU inference (CUDA, TensorRT, CoreML) for production AI workloads.

Usage

import ort "hanzo.ai/onnxgo"

ort.SetSharedLibraryPath("/usr/local/lib/libonnxruntime.so")
ort.InitializeEnvironment()
defer ort.DestroyEnvironment()

session, _ := ort.NewAdvancedSession("model.onnx",
    []string{"input"}, []string{"output"},
    ort.NewSessionOptions(),
)
defer session.Destroy()

GPU Support

NVIDIA CUDA + cuDNN, TensorRT, Apple CoreML, DirectML, OpenVINO, ROCm.

Origin

Forked from yalue/onnxruntime_go (2026-03-29). Rebranded for Hanzo AI infrastructure.