Graph_GetNodes property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtGraph> graph, Pointer<Pointer<OrtNode>> nodes, Size num_nodes)>> Graph_GetNodes
getter/setter pair

\brief Returns the graph's nodes as OrtNode instances.

The nodes are sorted using a stable topological ordering. Callers are responsible for maintaining their own node ordering if a different order is required.

\paramin graph The OrtGraph instance. \paramout nodes Pre-allocated array of num_nodes elements that is filled with the graph's nodes. \paramin num_nodes The size of the nodes array. Typical usage sets this to the result of Graph_GetNumNodes(). An error status is returned if num_nodes is less than the number of graph nodes.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtGraph> graph,
      ffi.Pointer<ffi.Pointer<OrtNode>> nodes,
      ffi.Size num_nodes,
    )
  >
>
Graph_GetNodes;