pub struct PoolStats {
pub cached_bytes: usize,
pub cached_buffers: usize,
pub hits: u64,
pub misses: u64,
}Expand description
Snapshot of the pool’s allocation statistics.
Fields§
§cached_bytes: usizeTotal bytes currently held in the cache (not in use by tensors).
cached_buffers: usizeNumber of individual buffers currently in the cache.
hits: u64Cumulative cache hits (allocations served from the cache).
misses: u64Cumulative cache misses (allocations that fell through to cudaMalloc).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnwindSafe for PoolStats
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