ReleaseSharedAllocator property

Pointer<NativeFunction<OrtStatusPtr Function(Pointer<OrtEnv> env, Pointer<OrtEpDevice> ep_device, UnsignedInt mem_type)>> ReleaseSharedAllocator
getter/setter pair

\brief Release a shared allocator from the OrtEnv for the OrtEpDevice and memory type.

This will release the shared allocator for the given OrtEpDevice and memory type. If no shared allocator exists, this is a no-op.

\paramin env The OrtEnv instance to release the shared allocator from. \paramin ep_device The OrtEpDevice instance to release the shared allocator for. \paramin mem_type The memory type of the shared allocator to release.

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.23

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtEnv> env,
      ffi.Pointer<OrtEpDevice> ep_device,
      ffi.UnsignedInt mem_type,
    )
  >
>
ReleaseSharedAllocator;