pub struct ArtifactGraphs {
pub manifest: Manifest,
pub graphs: BTreeMap<String, Vec<u8>>,
}Expand description
A loaded, checksum-verified artifact: the manifest plus the verified ONNX graphs keyed by member name.
Fields§
§manifest: Manifest§graphs: BTreeMap<String, Vec<u8>>Verified .onnx member bytes (encoder.onnx, decoder.onnx,
and decoder-kv.onnx when present).
Implementations§
Source§impl ArtifactGraphs
impl ArtifactGraphs
Sourcepub fn decoder_member(&self) -> Result<&str>
pub fn decoder_member(&self) -> Result<&str>
The member the decoder session must load: decoder-kv.onnx for
kv artifacts that carry it, else decoder.onnx (model.py
decoder_name parity).
Trait Implementations§
Auto Trait Implementations§
impl Forget for ArtifactGraphs
impl Freeze for ArtifactGraphs
impl RefUnwindSafe for ArtifactGraphs
impl Send for ArtifactGraphs
impl Sync for ArtifactGraphs
impl Unpin for ArtifactGraphs
impl UnsafeUnpin for ArtifactGraphs
impl UnwindSafe for ArtifactGraphs
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