Expand description
com.microsoft::EPContext node support — the load path (§55.3).
An EPContext node is the on-disk / interchange form of a compiled-EP
context (§55.1): an ordinary ONNX contrib node (op_type = "EPContext",
domain = "com.microsoft") that either embeds a pre-compiled vendor blob
inline or references it in an external file. This module provides:
EpContextNode— a typed view over an ordinary IRNode, parsing the §55.2 attributes. No new IR node kind is introduced.ep_context_nodes— enumerate theEPContextnodes in aGraph.resolve_ep_context— turn theep_cache_contextattribute into anEpContextBlob(inline bytes, or a read-onlymmapof an external file resolved relative to the model directory, §55.3).
The loader never interprets the blob bytes — they are opaque vendor
payload handed to whichever EP claims the node’s source key (§55.6),
which is out of scope here (owned by the session + ep-api).
Structs§
- EpContext
Node - A typed view over a
com.microsoft::EPContextnode in theGraphIR (§55.3). Backed by an ordinaryNodeplus its attributes — no separate IR node kind. Constructed viaEpContextNode::from_nodeor enumerated withep_context_nodes.
Enums§
- Embed
Mode - Whether the payload lives inline in the node or in an external file (§55.2).
- EpContext
Blob - Where the compiled blob physically lives after load-time resolution (§55.3).
Functions§
- ep_
context_ node_ ids - The
NodeIds of theEPContextnodes ingraph, in node-arena order. - ep_
context_ nodes - Enumerate the
com.microsoft::EPContextnodes ingraphas typed views (§55.3, recognition helper). The session dispatches each one on itssourcekey via theEpContextRegistry(§55.6, owned by ep-api/session). - is_
ep_ context_ op - Whether
(op_type, domain)identifies acom.microsoft::EPContextnode. - resolve_
ep_ context - Resolve the payload for one
EPContextnode (§55.3).