pub struct OrtEngine { /* private fields */ }Expand description
An ort-loaded IMF artifact: encoder + decoder sessions plus the
ONNX Runtime environment they share.
Implementations§
Source§impl OrtEngine
impl OrtEngine
Sourcepub fn from_graphs(graphs: &ArtifactGraphs) -> Result<OrtEngine>
pub fn from_graphs(graphs: &ArtifactGraphs) -> Result<OrtEngine>
Build sessions from verified graphs (decoder-kv.onnx is
selected for kv artifacts per the reference loader; this slice
implements the plain greedy loop — kv sessions decode through
the plain graph).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OrtEngine
impl !UnwindSafe for OrtEngine
impl Forget for OrtEngine
impl Freeze for OrtEngine
impl Send for OrtEngine
impl Sync for OrtEngine
impl Unpin for OrtEngine
impl UnsafeUnpin for OrtEngine
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