ModelCompilationOptions_SetOutputModelExternalInitializersFile property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtModelCompilationOptions> model_compile_options, Pointer<Char> external_initializers_file_path, Size external_initializers_size_threshold)> >
ModelCompilationOptions_SetOutputModelExternalInitializersFile
getter/setter pair
\brief Optionally sets the file that should store external initializers for the compiled ONNX model. If not set, initializers are stored within the model.
Only initializers for nodes that were not compiled are stored in the external initializers file.
Compiled nodes contain their initializer data within the ep_cache_context attribute of EPContext nodes.
Refer to ModelCompilationOptions_SetEpContextEmbedMode.
\paramin model_compile_options The OrtModelCompilationOptions instance.
\paramin external_initializers_file_path Null terminated string of the path to the file.
\paramin external_initializers_size_threshold Initializers larger than this threshold are stored in the file.
\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> external_initializers_file_path,
ffi.Size external_initializers_size_threshold,
)
>
>
ModelCompilationOptions_SetOutputModelExternalInitializersFile;