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 more