pub enum EpContextBlob {
Embedded(Vec<u8>),
External {
path: PathBuf,
map: Mmap,
},
}Expand description
Where the compiled blob physically lives after load-time resolution (§55.3).
The loader treats the bytes as opaque; it never parses them.
Variants§
Embedded(Vec<u8>)
embed_mode = 1: bytes owned inline (copied out of ep_cache_context).
External
embed_mode = 0: a read-only mmap of an external file resolved
relative to the model directory. Never eagerly copied into the graph.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EpContextBlob
impl RefUnwindSafe for EpContextBlob
impl Send for EpContextBlob
impl Sync for EpContextBlob
impl Unpin for EpContextBlob
impl UnsafeUnpin for EpContextBlob
impl UnwindSafe for EpContextBlob
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