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§
- adapter
- An input adapter, allowing for loading many static inputs from disk at once.
- api
- compiler
- editor
- environment
- An
Environment
is a process-global structure, under whichSession
s are created. - error
- execution_
providers ExecutionProvider
s provide hardware acceleration toSession
s.- io_
binding - Enables binding of session inputs and/or outputs to pre-allocated memory.
- logging
- memory
- Types for managing memory & device allocations.
- metadata
- operator
- Contains traits for implementing custom operator domains & kernels.
- session
- Contains
Session
, the main interface used to inference ONNX models. - tensor
- Traits and types related to
Tensor
s. - training
training
- Provides
Trainer
, a simple interface for on-device training/fine-tuning. - util
- value
Value
s are data containers used as inputs/outputs in ONNX Runtime graphs.
Macros§
- inputs
- Construct the inputs to a session from an array or named map of values.
- 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::OrtApi
object. - info
- Returns information about the build of ONNX Runtime used, including version, Git commit, and compile flags.
- set_api
- Sets the global
ort_sys::OrtApi
interface used byort
in order to use alternative backends, or a custom loading scheme.