Expand description
ort is a Rust binding for ONNX Runtime. For information on how to get started with ort,
see https://ort.pyke.io/introduction.
Re-exports§
pub use self::environment::init_from;pub use self::environment::init;pub use self::error::Error;pub use self::error::ErrorCode;pub use self::error::Result;pub use ort_sys as sys;
Modules§
- An input adapter, allowing for loading many static inputs from disk at once.
- An
Environmentis a process-global structure, under whichSessions are created. ExecutionProviders provide hardware acceleration toSessions.- Enables binding of session inputs and/or outputs to pre-allocated memory.
- Types for managing memory & device allocations.
- Contains traits for implementing custom operator domains & kernels.
- Contains
Session, the main interface used to inference ONNX models. - Traits related to
Tensors. - training
trainingProvidesTrainer, a simple interface for on-device training/fine-tuning. Values are data containers used as inputs/outputs in ONNX Runtime graphs.
Macros§
- Construct the inputs to a session from an array or named map of values.
Constants§
- The minor version of ONNX Runtime used by this version of
ort.
Traits§
- Trait to access raw pointers from safe types which wrap unsafe
ort_systypes.
Functions§
- Returns a pointer to the global
ort_sys::OrtApiobject. - Returns information about the build of ONNX Runtime used, including version, Git commit, and compile flags.