Crate ort

Source
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 which Sessions are created.
error
execution_providers
ExecutionProviders provide hardware acceleration to Sessions.
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 Tensors.
trainingtraining
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 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§

AsPointer
Trait to access raw pointers from safe types which wrap unsafe ort_sys types.

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 by ort in order to use alternative backends, or a custom loading scheme.