pub struct CalibrationConfig {
pub method: CalibrationMethod,
pub num_bins: usize,
pub percentile: f32,
pub windowsize: usize,
pub per_channel: bool,
pub symmetric: bool,
pub ema_factor: f32,
pub max_iterations: usize,
pub convergence_threshold: f32,
}
Expand description
Configuration for quantization calibration
Fields§
§method: CalibrationMethod
Method used for calibration
num_bins: usize
Number of histogram bins for entropy-based methods
percentile: f32
Percentile value for percentile-based methods (0.0 to 1.0)
windowsize: usize
Moving average window size for min-max methods
per_channel: bool
Whether to use per-channel calibration
symmetric: bool
Whether to use symmetric quantization
ema_factor: f32
Smoothing factor for exponential moving average (0.0 to 1.0) Higher values give more weight to recent observations
max_iterations: usize
Number of calibration iterations for dynamic methods
convergence_threshold: f32
Convergence threshold for iterative calibration methods
Trait Implementations§
Source§impl Clone for CalibrationConfig
impl Clone for CalibrationConfig
Source§fn clone(&self) -> CalibrationConfig
fn clone(&self) -> CalibrationConfig
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 CalibrationConfig
impl Debug for CalibrationConfig
Auto Trait Implementations§
impl Freeze for CalibrationConfig
impl RefUnwindSafe for CalibrationConfig
impl Send for CalibrationConfig
impl Sync for CalibrationConfig
impl Unpin for CalibrationConfig
impl UnwindSafe for CalibrationConfig
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