MemoryInfo_GetMemoryDevice property
Pointer<NativeFunction<Pointer<OrtMemoryDevice> Function(Pointer<OrtMemoryInfo> memory_info)> >
MemoryInfo_GetMemoryDevice
getter/setter pair
\brief Get the OrtMemoryDevice from an OrtMemoryInfo instance.
This is required for OrtDataTransferImpl (which implements onnxruntime::IDataTransfer) where the OrtMemoryDevice is used in the CanCopy and CopyTensors functions.
\paramin memory_info The OrtMemoryInfo instance to get the memory device from.
\return The OrtMemoryDevice associated with the OrtMemoryInfo instance.
\since Version 1.23.
Implementation
external ffi.Pointer<
ffi.NativeFunction<
ffi.Pointer<OrtMemoryDevice> Function(
ffi.Pointer<OrtMemoryInfo> memory_info,
)
>
>
MemoryInfo_GetMemoryDevice;