Skip to main content

Crate onnx_model_package

Crate onnx_model_package 

Source
Expand description

ORT model-package directory parsing, variant selection, and path resolution.

Structs§

Component
A package component containing named executable variants.
ExecutorInfo
Common executable fields understood from executor_info["nxrt"] or executor_info["ort"].
Manifest
An ORT 1.x package manifest.
ModelPackage
Open, parsed ORT model-package directory.
SelectedVariant
Fully resolved files for one selected variant.
SelectionRequest
Requested package variant attributes.
Variant
A named component variant.

Enums§

ComponentReference
An inline component or a path to a component JSON file/directory.
HostTrust
Caller-supplied trust policy governing whether an installed-layout package may resolve references outside the package root.
PackageError
Errors produced while opening, selecting, resolving, or validating a package.
PackageLayout
ORT package layout policy declared inside the (untrusted) manifest.

Functions§

is_model_package_directory
Probe whether a directory contains an ORT package manifest, while avoiding unrelated fixture/application files also named manifest.json.