ModelCompilationOptions_SetOutputModelPath property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtModelCompilationOptions> model_compile_options, Pointer<Char> output_model_path)>> ModelCompilationOptions_SetOutputModelPath
getter/setter pair

\brief Sets the file path for the output ONNX model generated by CompileModel.

The output model's location (e.g., file path or memory buffer) can be set with either ModelCompilationOptions_SetOutputModelPath or ModelCompilationOptions_SetOutputModelBuffer.

If the output model's location is not set, ONNX Runtime will generate an output file with a path based on the input model's file path. Examples: /Path/my_model.onnx -> /Path/my_model_ctx.onnx /Path/my_model -> /Path/my_model_ctx.onnx

\paramin model_compile_options The OrtModelCompilationOptions instance. \paramin output_model_path Null terminated string of the path (wchar on Windows, char otherwise).

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.22.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtModelCompilationOptions> model_compile_options,
      ffi.Pointer<ffi.Char> output_model_path,
    )
  >
>
ModelCompilationOptions_SetOutputModelPath;