Session_GetEpGraphAssignmentInfo property
\brief Get information about the subgraphs assigned to each execution provider (EP) and the nodes within.
Each returned OrtEpAssignedSubgraph instance contains details of the subgraph/nodes assigned to an execution provider, including the execution provider's name, and the name, domain, and operator type for every node.
For compiling execution providers, a single OrtEpAssignedSubgraph instance contains information about the nodes that are fused and compiled within a single subgraph assigned to the execution provider.
For execution providers that use kernel registration (e.g., CPU EP), each node with a registered kernel is contained in its own OrtEpAssignedSubgraph instance.
\note The caller must enable the collection of this information by enabling the session configuration entry "session.record_ep_graph_assignment_info" during session creation. Refer to onnxruntime_session_options_config_keys.h. Otherwise, if not enabled, this function returns a status with error code ORT_FAIL.
\note The information reported by this function is obtained immediately after running basic optimizations on the original graph if the session optimization level is set to ORT_ENABLE_BASIC or higher. If the session optimization level is set to ORT_DISABLE_ALL, only minimal/required optimizations are run before the information is collected.
\paramin session The OrtSession instance.
\paramout ep_subgraphs Output parameter set to the array of OrtEpAssignedSubgraph instances.
\paramout num_ep_subgraphs Output parameter set to the number of elements in the ep_subgraphs array.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.24.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtSession> session,
ffi.Pointer<ffi.Pointer<ffi.Pointer<OrtEpAssignedSubgraph>>>
ep_subgraphs,
ffi.Pointer<ffi.Size> num_ep_subgraphs,
)
>
>
Session_GetEpGraphAssignmentInfo;