Skip to main content

Crate spatialrust_ai

Crate spatialrust_ai 

Source
Expand description

Backend-independent model, session, named-I/O, and explicit binding contracts.

The default build contains no inference runtime. ONNX Runtime and hardware execution providers are additive features and must preserve the copy/device choices represented by these types.

Structs§

IoBinding
Inputs, requested output destinations, and completed named results.
MockInferenceBackend
Backend that never loads ONNX bytes and always uses MockProfile.
ModelInfo
Model-visible named input and output metadata.
NamedTensors
Ordered, uniquely named tensor collection.
OnnxRuntimeBackend
ONNX Runtime backend configured explicitly for the CPU execution provider.
OnnxRuntimeSession
Loaded ONNX Runtime CPU session.
PreallocatedOutput
Caller-owned mutable bytes for an explicitly bound CPU output.
RunOptions
Per-run host copy permissions.
SessionOptions
Runtime-independent session configuration.
TensorSpec
One named model input or output contract.

Enums§

AiError
Errors shared by inference contracts and backend adapters.
CopyPolicy
Whether a run may allocate and copy host tensor data.
Dimension
One model dimension, fixed, unconstrained, or symbolically dynamic.
GraphOptimization
Graph optimization level requested from a backend.
MockProfile
Built-in mock model profiles selected through ModelSource::Mock.
ModelSource
Model bytes, filesystem path, or built-in mock profile for session creation.
OutputBinding
Explicit output destination for an I/O-bound run.

Traits§

InferenceBackend
Stable interface implemented by inference engines.
ModelSession
Loaded model session with named dynamic I/O.

Type Aliases§

AiResult
Result type for inference operations.