pub struct OnnxRuntimeBackend;Expand description
ONNX Runtime backend configured explicitly for the CPU execution provider.
Trait Implementations§
Source§impl Clone for OnnxRuntimeBackend
impl Clone for OnnxRuntimeBackend
Source§fn clone(&self) -> OnnxRuntimeBackend
fn clone(&self) -> OnnxRuntimeBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnnxRuntimeBackend
impl Debug for OnnxRuntimeBackend
Source§impl Default for OnnxRuntimeBackend
impl Default for OnnxRuntimeBackend
Source§fn default() -> OnnxRuntimeBackend
fn default() -> OnnxRuntimeBackend
Returns the “default value” for a type. Read more
Source§impl InferenceBackend for OnnxRuntimeBackend
impl InferenceBackend for OnnxRuntimeBackend
Source§fn create_session(
&self,
source: &ModelSource,
options: &SessionOptions,
) -> AiResult<Box<dyn ModelSession>>
fn create_session( &self, source: &ModelSource, options: &SessionOptions, ) -> AiResult<Box<dyn ModelSession>>
Loads one model and returns an independent mutable session.
impl Copy for OnnxRuntimeBackend
Auto Trait Implementations§
impl Freeze for OnnxRuntimeBackend
impl RefUnwindSafe for OnnxRuntimeBackend
impl Send for OnnxRuntimeBackend
impl Sync for OnnxRuntimeBackend
impl Unpin for OnnxRuntimeBackend
impl UnsafeUnpin for OnnxRuntimeBackend
impl UnwindSafe for OnnxRuntimeBackend
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