pub struct EpContext {
pub ep_name: String,
pub ep_version: String,
pub data: Vec<u8>,
pub covered_nodes: Vec<NodeId>,
pub device_fingerprint: String,
}Expand description
The runtime form of a compiled-EP context (docs/ORT2.md §4 / §55.1).
This is the in-memory representation an EP produces from a freshly compiled
subgraph (ExecutionProvider::save_context) or restores at load
(ExecutionProvider::load_context), skipping the expensive
convert+compile step. It is distinct from the loader’s on-disk
EpContextNode/EpContextBlob (which is the serialized, in-graph,
tool-portable interchange form); the session maps between the two (§55.3).
Fields§
§ep_name: StringName of the EP that produced (and must consume) this context.
ep_version: StringSDK/toolchain version that generated the context (maps to the node’s
ep_sdk_version attribute — used for invalidation / diagnostics).
data: Vec<u8>Opaque compiled vendor blob (maps to the node’s ep_cache_context).
covered_nodes: Vec<NodeId>Graph nodes this context covers (the partition boundary it replaces).
device_fingerprint: StringDevice/target fingerprint the blob was compiled for; filled and validated by the owning EP to reject a mismatched load.