ValueInfo_GetInitializerValue property
\brief Get the underlying initializer value, as an OrtValue, from the given OrtValueInfo.
Sets the output parameter to NULL if the given OrtValueInfo does not represent an initializer. Does not return an error status in this case.
Supports initializers defined in an outer scope (i.e., a parent graph).
Supports initializers stored in an external file. For external initializers, ORT memory maps the initializer data on the first call to this function. If caller needs custom memory mapping, use ValueInfo_GetExternalInitializerInfo to get the location of the initializer data.
\paramin value_info The OrtValueInfo instance.
\paramout initializer_value Output parameter set to the initializer value or NULL. Do not cache the OrtValue
as it is released when the owning OrtGraph is released.
\snippet{doc} snippets.dox OrtStatus Return Value
\since Version 1.23.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
OrtStatusPtr Function(
ffi.Pointer<OrtValueInfo> value_info,
ffi.Pointer<ffi.Pointer<OrtValue>> initializer_value,
)
>
>
ValueInfo_GetInitializerValue;