CreateAllocator property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtSession> session, Pointer<OrtMemoryInfo> mem_info, Pointer<Pointer<OrtAllocator>> out)>> CreateAllocator
getter/setter pair

\brief Create an allocator for an ::OrtSession following an ::OrtMemoryInfo

The allocator wraps the internal allocator from the OrtSession and becomes invalid when the session does.

\paramin session \paramin mem_info valid ::OrtMemoryInfo instance \paramout out Newly created ::OrtAllocator. Must be freed with OrtApi::ReleaseAllocator

\snippet{doc} snippets.dox OrtStatus Return Value

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtSession> session,
      ffi.Pointer<OrtMemoryInfo> mem_info,
      ffi.Pointer<ffi.Pointer<OrtAllocator>> out,
    )
  >
>
CreateAllocator;