ONNX Runtime
Loading...
Searching...
No Matches
OrtExternalMemoryDescriptor Struct Reference

Descriptor for importing external memory. More...

#include <onnxruntime_c_api.h>

Public Attributes

uint32_t version
 
OrtExternalMemoryHandleType handle_type
 
void * native_handle
 
size_t size_bytes
 
size_t offset_bytes
 

Detailed Description

Descriptor for importing external memory.

Note
The version field must be set to ORT_API_VERSION. This ensures forward compatibility as fields may be added in future versions.
Since
Version 1.24.

Member Data Documentation

◆ handle_type

OrtExternalMemoryHandleType OrtExternalMemoryDescriptor::handle_type

Type of the external memory handle

◆ native_handle

void* OrtExternalMemoryDescriptor::native_handle

Platform-specific handle (e.g., Windows HANDLE)

◆ offset_bytes

size_t OrtExternalMemoryDescriptor::offset_bytes

Offset in bytes into the allocation (default 0). Base offset for the imported memory region.

◆ size_bytes

size_t OrtExternalMemoryDescriptor::size_bytes

Total size in bytes of the external allocation

◆ version

uint32_t OrtExternalMemoryDescriptor::version

Must be ORT_API_VERSION