ModelCompilationOptions_SetInputModelFromBuffer property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtModelCompilationOptions> model_compile_options, Pointer<Void> input_model_data, Size input_model_data_size)>> ModelCompilationOptions_SetInputModelFromBuffer
getter/setter pair

\brief Sets the buffer that stores the bytes of the loaded ONNX model to compile.

The input model's location (e.g., file path or memory buffer) must be set with either ModelCompilationOptions_SetInputModelPath or ModelCompilationOptions_SetInputModelFromBuffer.

\paramin model_compile_options The OrtModelCompilationOptions instance. \paramin input_model_data Buffer containing the loaded ONNX model bytes. \paramin input_model_data_size The number of bytes in the input_model_data buffer.

\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.Void> input_model_data,
      ffi.Size input_model_data_size,
    )
  >
>
ModelCompilationOptions_SetInputModelFromBuffer;