pub struct DeviceMemoryEntry {
pub total: i64,
pub free: i64,
pub model: usize,
pub context: usize,
pub compute: usize,
}Expand description
Per-device memory projection from get_device_memory_data.
Fields§
§total: i64Total device memory in bytes.
free: i64Free device memory in bytes at query time.
model: usizeProjected model weight bytes on this device.
context: usizeProjected KV / recurrent cache bytes.
compute: usizeProjected temporary compute buffer bytes.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceMemoryEntry
impl Clone for DeviceMemoryEntry
Source§fn clone(&self) -> DeviceMemoryEntry
fn clone(&self) -> DeviceMemoryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceMemoryEntry
impl Debug for DeviceMemoryEntry
impl Eq for DeviceMemoryEntry
Source§impl PartialEq for DeviceMemoryEntry
impl PartialEq for DeviceMemoryEntry
Source§fn eq(&self, other: &DeviceMemoryEntry) -> bool
fn eq(&self, other: &DeviceMemoryEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceMemoryEntry
Auto Trait Implementations§
impl Freeze for DeviceMemoryEntry
impl RefUnwindSafe for DeviceMemoryEntry
impl Send for DeviceMemoryEntry
impl Sync for DeviceMemoryEntry
impl Unpin for DeviceMemoryEntry
impl UnsafeUnpin for DeviceMemoryEntry
impl UnwindSafe for DeviceMemoryEntry
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