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
A tensor is being loaded.
Fields
TensorQuantizing
A tensor is being quantized.
TensorQuantized
A tensor has been quantized.
Fields
TensorSkipped
A tensor has been skipped.
Fields
Finished
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 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<'a> Freeze for QuantizeProgress<'a>
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