Struct ort::SharedSessionInner
source · pub struct SharedSessionInner { /* private fields */ }
Expand description
Holds onto an ort_sys::OrtSession
pointer and its associated allocator.
Internally, this is wrapped in an Arc
and shared between a Session
and any Value
s created as a result
of Session::run
to ensure that the Value
s are kept alive until all references to the session are dropped.
Implementations§
sourcepub fn ptr(&self) -> *mut OrtSession
pub fn ptr(&self) -> *mut OrtSession
Returns the underlying ort_sys::OrtSession
pointer.
Trait Implementations§
Auto Trait Implementations§
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