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
Environment
is a process-global structure, under whichSession
s are created. ExecutionProvider
s provide hardware acceleration toSession
s.- 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
Tensor
s. - training
training
ProvidesTrainer
, a simple interface for on-device training/fine-tuning. Value
s 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_sys
types.
Functions§
- Returns a pointer to the global
ort_sys::OrtApi
object. - Returns information about the build of ONNX Runtime used, including version, Git commit, and compile flags.