pub struct SmoothQuantConfig {
pub alpha: f32,
}Expand description
SmoothQuant migration configuration.
Fields§
§alpha: f32Migration strength α ∈ [0, 1].
- 0.5 — equal difficulty between activations and weights (default).
- 1.0 — migrate all difficulty to weights (activations easy, weights hard).
- 0.0 — no migration (activations carry full difficulty).
Trait Implementations§
Source§impl Clone for SmoothQuantConfig
impl Clone for SmoothQuantConfig
Source§fn clone(&self) -> SmoothQuantConfig
fn clone(&self) -> SmoothQuantConfig
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 moreSource§impl Debug for SmoothQuantConfig
impl Debug for SmoothQuantConfig
Source§impl Default for SmoothQuantConfig
impl Default for SmoothQuantConfig
impl Copy for SmoothQuantConfig
Auto Trait Implementations§
impl Freeze for SmoothQuantConfig
impl RefUnwindSafe for SmoothQuantConfig
impl Send for SmoothQuantConfig
impl Sync for SmoothQuantConfig
impl Unpin for SmoothQuantConfig
impl UnsafeUnpin for SmoothQuantConfig
impl UnwindSafe for SmoothQuantConfig
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