ApplyModelToModelEditorSession property
\brief Apply changes to augment the ONNX model in a session created using CreateModelEditorSessionFromArray
Adds new nodes and updates graph inputs/outputs using model to augment the original ONNX model in the session.
All changes will be validated.
Call FinalizeModelEditorSession to prepare the session for inferencing.
Existing input/outputs will only be updated if the OrtGraph inputs/outputs are set in the OrtModel. i.e. you don't need to call SetGraphInputs/SetGraphOutputs if they are unchanged.
ReleaseOrtModel must be called to free the OrtModel after it is applied to the session.
\paramin session OrtSession to update. Session must have been created using CreateModelEditorSessionFromArray.
\paramin model OrtModel containing new nodes, new initializers, and updated graph input and/or output info.
\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<OrtModel> model,
)
>
>
ApplyModelToModelEditorSession;