FinalizeModelEditorSession property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSession> session, Pointer<OrtSessionOptions> options, Pointer<OrtPrepackedWeightsContainer> prepacked_weights_container)>> FinalizeModelEditorSession
getter/setter pair

\brief Finalize the Model Editor session that was created using CreateModelEditorSessionFromArray.

Finalize the Model Editor session that augmented an ONNX model by adding new nodes. This will run optimizers and prepare the session for inferencing.

\paramin session OrtSession to finalize. Session must have been created using CreateModelEditorSessionFromArray. \paramin options OrtSessionOptions to use for the session. \paramin prepacked_weights_container Optional OrtPrepackedWeightsContainer to use for the session. Set to nullptr if not used. \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<OrtSessionOptions> options,
      ffi.Pointer<OrtPrepackedWeightsContainer> prepacked_weights_container,
    )
  >
>
FinalizeModelEditorSession;