pub struct OnnxRuntimeSession { /* private fields */ }Expand description
Loaded ONNX Runtime CPU session.
Trait Implementations§
Source§impl Debug for OnnxRuntimeSession
impl Debug for OnnxRuntimeSession
Source§impl ModelSession for OnnxRuntimeSession
impl ModelSession for OnnxRuntimeSession
Source§fn backend_name(&self) -> &str
fn backend_name(&self) -> &str
Stable backend identifier for diagnostics and capability checks.
Source§fn model_info(&self) -> &ModelInfo
fn model_info(&self) -> &ModelInfo
Returns model input/output metadata captured at load time.
Source§fn run_with_options(
&mut self,
inputs: NamedTensors,
options: RunOptions,
) -> AiResult<NamedTensors>
fn run_with_options( &mut self, inputs: NamedTensors, options: RunOptions, ) -> AiResult<NamedTensors>
Runs named I/O with explicit host copy permissions.
Source§fn run_with_binding(&mut self, binding: &mut SpatialIoBinding) -> AiResult<()>
fn run_with_binding(&mut self, binding: &mut SpatialIoBinding) -> AiResult<()>
Runs with explicit input/output device or allocation bindings.
Source§fn run(&mut self, inputs: NamedTensors) -> AiResult<NamedTensors>
fn run(&mut self, inputs: NamedTensors) -> AiResult<NamedTensors>
Runs without authorizing hidden host copies.
Auto Trait Implementations§
impl Freeze for OnnxRuntimeSession
impl !RefUnwindSafe for OnnxRuntimeSession
impl Send for OnnxRuntimeSession
impl Sync for OnnxRuntimeSession
impl Unpin for OnnxRuntimeSession
impl UnsafeUnpin for OnnxRuntimeSession
impl !UnwindSafe for OnnxRuntimeSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more