pub struct MockInferenceBackend;Expand description
Backend that never loads ONNX bytes and always uses MockProfile.
Trait Implementations§
Source§impl Clone for MockInferenceBackend
impl Clone for MockInferenceBackend
Source§fn clone(&self) -> MockInferenceBackend
fn clone(&self) -> MockInferenceBackend
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 MockInferenceBackend
impl Debug for MockInferenceBackend
Source§impl Default for MockInferenceBackend
impl Default for MockInferenceBackend
Source§fn default() -> MockInferenceBackend
fn default() -> MockInferenceBackend
Returns the “default value” for a type. Read more
Source§impl InferenceBackend for MockInferenceBackend
impl InferenceBackend for MockInferenceBackend
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.
Auto Trait Implementations§
impl Freeze for MockInferenceBackend
impl RefUnwindSafe for MockInferenceBackend
impl Send for MockInferenceBackend
impl Sync for MockInferenceBackend
impl Unpin for MockInferenceBackend
impl UnsafeUnpin for MockInferenceBackend
impl UnwindSafe for MockInferenceBackend
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