Enum llm_base::QuantizeProgress
source · pub enum QuantizeProgress<'a> {
HyperparametersLoaded,
TensorLoading {
name: &'a str,
dims: [usize; 2],
element_type: Type,
n_elements: usize,
},
TensorQuantizing {
name: &'a str,
},
TensorQuantized {
name: &'a str,
original_size: usize,
reduced_size: usize,
history: Vec<f32>,
},
TensorSkipped {
name: &'a str,
size: usize,
},
Finished {
original_size: usize,
reduced_size: usize,
history: Vec<f32>,
},
}Expand description
Progress of quantization.
Variants§
HyperparametersLoaded
Hyperparameters have been loaded.
TensorLoading
Fields
A tensor is being loaded.
TensorQuantizing
A tensor is being quantized.
TensorQuantized
Fields
A tensor has been quantized.
TensorSkipped
Fields
A tensor has been skipped.
Finished
Fields
A model has been quantized.
Trait Implementations§
source§impl<'a> Clone for QuantizeProgress<'a>
impl<'a> Clone for QuantizeProgress<'a>
source§fn clone(&self) -> QuantizeProgress<'a>
fn clone(&self) -> QuantizeProgress<'a>
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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for QuantizeProgress<'a>
impl<'a> Send for QuantizeProgress<'a>
impl<'a> Sync for QuantizeProgress<'a>
impl<'a> Unpin for QuantizeProgress<'a>
impl<'a> UnwindSafe for QuantizeProgress<'a>
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