Struct pjrt_sys::PJRT_Device_MemoryStats_Args
source · #[repr(C)]pub struct PJRT_Device_MemoryStats_Args {Show 24 fields
pub struct_size: usize,
pub extension_start: *mut PJRT_Extension_Base,
pub device: *mut PJRT_Device,
pub bytes_in_use: i64,
pub peak_bytes_in_use: i64,
pub peak_bytes_in_use_is_set: bool,
pub num_allocs: i64,
pub num_allocs_is_set: bool,
pub largest_alloc_size: i64,
pub largest_alloc_size_is_set: bool,
pub bytes_limit: i64,
pub bytes_limit_is_set: bool,
pub bytes_reserved: i64,
pub bytes_reserved_is_set: bool,
pub peak_bytes_reserved: i64,
pub peak_bytes_reserved_is_set: bool,
pub bytes_reservable_limit: i64,
pub bytes_reservable_limit_is_set: bool,
pub largest_free_block_bytes: i64,
pub largest_free_block_bytes_is_set: bool,
pub pool_bytes: i64,
pub pool_bytes_is_set: bool,
pub peak_pool_bytes: i64,
pub peak_pool_bytes_is_set: bool,
}Fields§
§struct_size: usize§extension_start: *mut PJRT_Extension_Base§device: *mut PJRT_Device§bytes_in_use: i64§peak_bytes_in_use: i64§peak_bytes_in_use_is_set: bool§num_allocs: i64§num_allocs_is_set: bool§largest_alloc_size: i64§largest_alloc_size_is_set: bool§bytes_limit: i64§bytes_limit_is_set: bool§bytes_reserved: i64§bytes_reserved_is_set: bool§peak_bytes_reserved: i64§peak_bytes_reserved_is_set: bool§bytes_reservable_limit: i64§bytes_reservable_limit_is_set: bool§largest_free_block_bytes: i64§largest_free_block_bytes_is_set: bool§pool_bytes: i64§pool_bytes_is_set: bool§peak_pool_bytes: i64§peak_pool_bytes_is_set: boolImplementations§
source§impl PJRT_Device_MemoryStats_Args
impl PJRT_Device_MemoryStats_Args
pub const STRUCT_SIZE: usize = 185usize
pub fn new() -> Self
Trait Implementations§
source§impl Clone for PJRT_Device_MemoryStats_Args
impl Clone for PJRT_Device_MemoryStats_Args
source§fn clone(&self) -> PJRT_Device_MemoryStats_Args
fn clone(&self) -> PJRT_Device_MemoryStats_Args
Returns a copy of the value. Read more
1.0.0 · 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 PJRT_Device_MemoryStats_Args
impl Debug for PJRT_Device_MemoryStats_Args
impl Copy for PJRT_Device_MemoryStats_Args
Auto Trait Implementations§
impl Freeze for PJRT_Device_MemoryStats_Args
impl RefUnwindSafe for PJRT_Device_MemoryStats_Args
impl !Send for PJRT_Device_MemoryStats_Args
impl !Sync for PJRT_Device_MemoryStats_Args
impl Unpin for PJRT_Device_MemoryStats_Args
impl UnwindSafe for PJRT_Device_MemoryStats_Args
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)