#[non_exhaustive]pub struct ConvertStats {
pub tensors: usize,
pub dequantized: usize,
pub quantized: usize,
pub passthrough: usize,
}Expand description
What a convert call produced, for progress reporting.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tensors: usizeTotal tensors written.
dequantized: usizeInput tensors that were dequantised on the way in, into
ConvertOptions::output_dtype (BF16 by default).
quantized: usizeTensors the target quantised on the way out (the BnB-NF4 encoder).
passthrough: usizeTensors written in their incoming dtype.
Trait Implementations§
Source§impl Clone for ConvertStats
impl Clone for ConvertStats
Source§fn clone(&self) -> ConvertStats
fn clone(&self) -> ConvertStats
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 moreimpl Copy for ConvertStats
Source§impl Debug for ConvertStats
impl Debug for ConvertStats
Source§impl Default for ConvertStats
impl Default for ConvertStats
Source§fn default() -> ConvertStats
fn default() -> ConvertStats
Returns the “default value” for a type. Read more
impl Eq for ConvertStats
Source§impl PartialEq for ConvertStats
impl PartialEq for ConvertStats
impl StructuralPartialEq for ConvertStats
Auto Trait Implementations§
impl Freeze for ConvertStats
impl RefUnwindSafe for ConvertStats
impl Send for ConvertStats
impl Sync for ConvertStats
impl Unpin for ConvertStats
impl UnsafeUnpin for ConvertStats
impl UnwindSafe for ConvertStats
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