Node_GetSubgraphs property
\brief Get the subgraphs, as OrtGraph instances, contained by the given node.
\note Only certain operator types (e.g., If and Loop) contain nested subgraphs. ONNX nodes store subgraphs in their attributes, however, this function must be used to obtain subgraphs from an OrtNode.
\paramin node The OrtNode instance.
\paramout subgraphs Pre-allocated array of num_subgraphs elements that is filled with the node's subgraphs.
\paramin num_subgraphs The size of the num_subgraphs array.
Typical usage sets this to the result of Node_GetNumSubgraphs(). An error status is
returned if num_subgraphs is less than the number of node subgraphs.
\paramout attribute_names Optional pre-allocated array of num_subgraphs elements that is filled with the
attribute names that correspond to the subgraphs. Ignored if set to NULL.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.23.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtNode> node,
ffi.Pointer<ffi.Pointer<OrtGraph>> subgraphs,
ffi.Size num_subgraphs,
ffi.Pointer<ffi.Pointer<ffi.Char>> attribute_names,
)
>
>
Node_GetSubgraphs;