Struct ort::memory::MemoryInfo
source · pub struct MemoryInfo { /* private fields */ }
Implementations§
source§impl MemoryInfo
impl MemoryInfo
pub fn new_cpu( allocator: AllocatorType, memory_type: MemType ) -> OrtResult<Self>
pub fn new( allocation_device: AllocationDevice, device_id: c_int, allocator_type: AllocatorType, memory_type: MemType ) -> OrtResult<Self>
pub fn allocation_device( memory_info_ptr: *const OrtMemoryInfo ) -> OrtResult<AllocationDevice>
Trait Implementations§
source§impl Debug for MemoryInfo
impl Debug for MemoryInfo
Auto Trait Implementations§
impl RefUnwindSafe for MemoryInfo
impl !Send for MemoryInfo
impl !Sync for MemoryInfo
impl Unpin for MemoryInfo
impl UnwindSafe for MemoryInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more