Expand description
ort is a Rust binding for ONNX Runtime. For information on how to get started with ort,
see https://ort.pyke.io/.
Re-exports§
pub use self::environment::init_from;load-dynamicand non-WebAssemblypub 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§
- compiler
api-22 - Provides
ModelCompiler, which optimizes and creates EP graphs for an ONNX model ahead-of-time to greatly reduce startup time. - device
api-22 - editor
api-22 - environment
- The
Environmentis a process-global configuration under whichSessions are created. - ep
ExecutionProviders provide hardware acceleration toSessions.- error
- logging
- memory
- Types for managing memory & device allocations.
- operator
- Contains traits for implementing custom operator domains & kernels.
- session
- Contains
Session, the main interface used to inference ONNX models. - training
training - Provides
Trainer, a simple interface for on-device training/fine-tuning. - util
- value
Values are data containers used as inputs/outputs in ONNX Runtime graphs.
Macros§
- inputs
- Construct the inputs to a session (
SessionInputs) from either an array or a named map of values (SessionInputValues). - log
- Logs a message to a given
Logger. - ortsys
Constants§
- MINOR_
VERSION - The minor version of ONNX Runtime used by this version of
ort.
Traits§
Functions§
- api
- Returns a reference to the global
ort_sys::OrtApiobject. - info
- Returns information about the build of ONNX Runtime used, including version, Git commit, and compile flags.
- set_api
- Sets the global
ort_sys::OrtApiinterface used byortin order to use alternative backends, or a custom loading scheme.