Graph_GetGraphView property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtGraph> src_graph, Pointer<Pointer<OrtNode>> nodes, Size num_nodes, Pointer<Pointer<OrtGraph>> dst_graph)>> Graph_GetGraphView
getter/setter pair

\brief Returns an OrtGraph that contains a subset of nodes in the source OrtGraph.

\note The lifetime of "dst_graph" is tied to that of "src_graph", as they both internally reference the same underlying graph. "dst_graph" preserves the input order of "src_graph", and its output order corresponds to the outputs produced by the nodes in "nodes" with the given order.

\paramin src_graph The source OrtGraph instance. \paramin nodes A subset of the nodes/OrtNodes in 'graph'. \paramin num_nodes Number of nodes. \paramout dst_graph An OrtGraph created from a given set of nodes. Must be released by calling ReleaseGraph.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtGraph> src_graph,
      ffi.Pointer<ffi.Pointer<OrtNode>> nodes,
      ffi.Size num_nodes,
      ffi.Pointer<ffi.Pointer<OrtGraph>> dst_graph,
    )
  >
>
Graph_GetGraphView;