ImportMemory property

\brief Import external memory into the execution provider.

\paramin importer The OrtExternalResourceImporter instance. \paramin desc Descriptor containing the external memory handle and properties. \paramout out_handle Output parameter set to the created OrtExternalMemoryHandle. The caller owns the returned handle and must call ReleaseExternalMemoryHandle to free it.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.24.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtExternalResourceImporter> importer,
      ffi.Pointer<OrtExternalMemoryDescriptor> desc,
      ffi.Pointer<ffi.Pointer<OrtExternalMemoryHandle>> out_handle,
    )
  >
>
ImportMemory;