AddInitializer property
Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSessionOptions> options, Pointer<Char> name, Pointer<OrtValue> val)> >
AddInitializer
getter/setter pair
\brief Add a pre-allocated initializer to a session
If a model contains an initializer with a name that is same as the name passed to this call, ORT will use this initializer instance instead of deserializing one from the model file. This is useful when you want to share the same initializer across sessions.
\paramin options
\paramin name Null terminated string of the initializer name
\paramin val ::OrtValue containing the initializer. Its lifetime and the underlying initializer buffer must be
managed by the user (created using the OrtApi::CreateTensorWithDataAsOrtValue) and it must outlive the session object
to which it is added.
\snippet{doc} snippets.dox OrtStatus Return Value
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtSessionOptions> options,
ffi.Pointer<ffi.Char> name,
ffi.Pointer<OrtValue> val,
)
>
>
AddInitializer;