RegisterCustomOpsLibrary property
\deprecated Use OrtApi::RegisterCustomOpsLibrary_V2.
Registers custom ops from a shared library.
Loads a shared library (dll on windows, so on linux, etc) named 'library_path' and looks for this entry point: OrtStatus* RegisterCustomOps(OrtSessionOptions * options, const OrtApiBase* api); It then passes in the provided session options to this function along with the api base. The handle to the loaded library is returned in library_handle. It can be freed by the caller after all sessions using the passed in session options are destroyed, or if an error occurs and it is non null.
\paramin options
\paramin library_path
\paramout library_handle OS specific handle to the loaded library (Use FreeLibrary on Windows, dlclose on Linux, etc.. to unload)
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtSessionOptions> options,
ffi.Pointer<ffi.Char> library_path,
ffi.Pointer<ffi.Pointer<ffi.Void>> library_handle,
)
>
>
RegisterCustomOpsLibrary;