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
Source§fn default() -> EpContextDumpConfig
fn default() -> 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more