pub struct EpContextDumpConfig {
pub enable: bool,
pub file_path: Option<PathBuf>,
pub embed_mode: u8,
}Expand description
Configuration for the EPContext dump path (§55.4).
A follow-up wires the SessionBuilder / C-API options
ep.context_enable / ep.context_file_path / ep.context_embed_mode to
populate this struct, so the field names/types match those options exactly.
It is directly constructible (no option-string parsing) so it can be built
and tested standalone.
Fields§
§enable: boolep.context_enable — whether to dump a context-cache model at all. When
false, dump_ep_context is a no-op: it writes no sidecars and no ctx
model, so a disabled config is safe by construction.
file_path: Option<PathBuf>ep.context_file_path — the output model path. None defaults to
<orig_stem>_ctx.onnx beside the source model.
embed_mode: u8ep.context_embed_mode — 1 embeds the blob inline (default), 0
writes it to an external sidecar .bin and stores the relative path.
Trait Implementations§
Source§impl Clone for EpContextDumpConfig
impl Clone for EpContextDumpConfig
Source§fn clone(&self) -> EpContextDumpConfig
fn clone(&self) -> EpContextDumpConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EpContextDumpConfig
impl Debug for EpContextDumpConfig
Source§impl Default for EpContextDumpConfig
impl Default for EpContextDumpConfig
impl Eq for EpContextDumpConfig
Source§impl PartialEq for EpContextDumpConfig
impl PartialEq for EpContextDumpConfig
impl StructuralPartialEq for EpContextDumpConfig
Auto Trait Implementations§
impl Freeze for EpContextDumpConfig
impl RefUnwindSafe for EpContextDumpConfig
impl Send for EpContextDumpConfig
impl Sync for EpContextDumpConfig
impl Unpin for EpContextDumpConfig
impl UnsafeUnpin for EpContextDumpConfig
impl UnwindSafe for EpContextDumpConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.