pub struct PoolStatistics {
pub total_cached_tensors: usize,
pub unique_shapes: usize,
pub current_pool_size_mb: f64,
pub max_pool_size_mb: f64,
}
Expand description
Statistics about the memory pool
Fields§
§total_cached_tensors: usize
Number of tensors currently cached
unique_shapes: usize
Number of unique tensor shapes in the pool
current_pool_size_mb: f64
Current pool size in MB
max_pool_size_mb: f64
Maximum pool size in MB
Trait Implementations§
Source§impl Clone for PoolStatistics
impl Clone for PoolStatistics
Source§fn clone(&self) -> PoolStatistics
fn clone(&self) -> PoolStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PoolStatistics
impl RefUnwindSafe for PoolStatistics
impl Send for PoolStatistics
impl Sync for PoolStatistics
impl Unpin for PoolStatistics
impl UnwindSafe for PoolStatistics
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more