Skip to content

onnxruntime

Resolve the ONNX Runtime shared library for the machine you are on.

resolver, err := onnxruntime.New(client)
lib, err := resolver.Resolve(ctx, "")

lib is a path on disk. This module does not load it, bind to the C API, or know anything about models — it answers one question, where is libonnxruntime for this machine?, and gets out of the way.

Where to start

What resolves it

Four sources, tried in order: a path you configured, a library bundled beside the executable, a copy already in the cache, and the estate's signed artefact channel. The first three cost nothing; only the fourth touches the network.

What it deliberately does not do

Downloading and verification belong to go/artifacts. This module holds no URLs and no digests, and cannot fetch anything on its own — see why there are no digests here.