Graph_GetOperatorSets property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtGraph> graph, Pointer<Pointer<Char>> domains, Pointer<Int64> opset_versions, Size num_operator_sets)>> Graph_GetOperatorSets
getter/setter pair

\brief Returns the operator sets that the graph's model uses.

\note An operator set is uniquely identified by the (domain, opset_version) pair. All models must have at least one entry that specifies which entry of the ONNX operator set is used. The ONNX domain is represented by an empty string.

\paramin graph The OrtGraph instance. \paramout domains Pre-allocated array of num_operator_sets elements that is filled with null-terminated domain names. \paramout opset_versions Pre-allocated array of num_operator_sets elements that is filled with the opset version of the corresponding domain in the domains array. \paramin num_operator_sets The size of the domains and opset_versions arrays. Typical usage sets this to the result of Graph_GetNumOperatorSets(). An error status is returned if num_operator_sets is less than the actual number of operator sets.

\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<ffi.Char>> domains,
      ffi.Pointer<ffi.Int64> opset_versions,
      ffi.Size num_operator_sets,
    )
  >
>
Graph_GetOperatorSets;