pub struct DeduplicationStats {
pub unique_tensors: usize,
pub total_checked: usize,
}Expand description
Statistics for tensor deduplication
Fields§
§unique_tensors: usizeNumber of unique tensors seen (distinct CIDs)
total_checked: usizeTotal number of tensors checked for deduplication
Implementations§
Source§impl DeduplicationStats
impl DeduplicationStats
Sourcepub fn dedup_ratio(&self) -> f64
pub fn dedup_ratio(&self) -> f64
Calculate the deduplication ratio
Trait Implementations§
Source§impl Clone for DeduplicationStats
impl Clone for DeduplicationStats
Source§fn clone(&self) -> DeduplicationStats
fn clone(&self) -> DeduplicationStats
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DeduplicationStats
impl RefUnwindSafe for DeduplicationStats
impl Send for DeduplicationStats
impl Sync for DeduplicationStats
impl Unpin for DeduplicationStats
impl UnwindSafe for DeduplicationStats
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