ValueInfo_GetExternalInitializerInfo property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtValueInfo> value_info, Pointer<Pointer<OrtExternalInitializerInfo>> info)>> ValueInfo_GetExternalInitializerInfo
getter/setter pair

\brief Get information about an external initializer (e.g., filepath, file offset, byte size).

Sets the output parameter info to NULL if the given OrtValueInfo does not represent an initializer with external data. In this case, a NULL status (non-error) is returned.

\paramin value_info The OrtValueInfo instance. \paramout info Output parameter set to an OrtExternalInitializerInfo instance that can be used to query file path, file offset, etc. ORT sets this to NULL if the OrtValueInfo does not represent an external initializer. Must release with ReleaseExternalInitializerInfo.

\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<OrtExternalInitializerInfo>> info,
    )
  >
>
ValueInfo_GetExternalInitializerInfo;