SessionGetOpsetForDomain property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSession> session, Pointer<Char> domain, Pointer<Int> opset)>> SessionGetOpsetForDomain
getter/setter pair

\brief Query the session for the opset version of a domain.

When using the Model Editor API to augment a model, any new nodes must conform to the opset version of the original model. To do that the user must be able to discover that opset version. Returns an error if the domain is not used in the model.

\paramin session OrtSession to query \paramin domain Domain to query. The ONNX domain is an empty string. \paramout opset The opset version of the domain.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.22.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtSession> session,
      ffi.Pointer<ffi.Char> domain,
      ffi.Pointer<ffi.Int> opset,
    )
  >
>
SessionGetOpsetForDomain;