KernelInfoGetAllocator property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtKernelInfo> info, Int mem_type, Pointer<Pointer<OrtAllocator>> out)>> KernelInfoGetAllocator
getter/setter pair

\brief Get allocator from KernelInfo for a specific memory type. Please use C API ReleaseAllocator to release out object

\paramin info OrtKernelInfo instance \paramin mem_type OrtMemType object \paramout out A pointer to OrtAllocator

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.18.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtKernelInfo> info,
      ffi.Int mem_type,
      ffi.Pointer<ffi.Pointer<OrtAllocator>> out,
    )
  >
>
KernelInfoGetAllocator;