ModelCompilationOptions_SetOutputModelGetInitializerLocationFunc property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtModelCompilationOptions> model_compile_options, OrtGetInitializerLocationFunc get_initializer_location_func, Pointer<Void> state)>> ModelCompilationOptions_SetOutputModelGetInitializerLocationFunc
getter/setter pair

\brief Sets a OrtGetInitializerLocationFunc function that is called by ORT for every initializer in the generated model. Allows implementer to specify whether initializers should be stored within the model or externally.

\paramin model_compile_options The OrtModelCompilationOptions instance. \paramin get_initializer_location_func The OrtGetInitializerLocationFunc function called by ORT when to determine the location of the initializer. \paramin state Opaque state passed as the first argument to OrtGetInitializerLocationFunc. Can be NULL.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtModelCompilationOptions> model_compile_options,
      OrtGetInitializerLocationFunc get_initializer_location_func,
      ffi.Pointer<ffi.Void> state,
    )
  >
>
ModelCompilationOptions_SetOutputModelGetInitializerLocationFunc;