pub struct AnalysisConfig {
pub sensitivity_threshold: f32,
pub fp32_threshold: f32,
pub aggressive_threshold: f32,
pub max_accuracy_drop_percent: f32,
pub efficiency_weights: EfficiencyWeights,
pub normalization_factors: NormalizationFactors,
}Expand description
Configuration parameters for sensitivity analysis
Fields§
§sensitivity_threshold: f32Threshold for considering a layer as high sensitivity (default: 0.05)
fp32_threshold: f32Threshold for keeping layers in FP32 (default: 0.05)
aggressive_threshold: f32Threshold for aggressive quantization candidates (default: 0.01)
max_accuracy_drop_percent: f32Maximum acceptable accuracy drop percentage (default: 5.0%)
efficiency_weights: EfficiencyWeightsWeights for efficiency score calculation
normalization_factors: NormalizationFactorsNormalization factors for efficiency score
Implementations§
Source§impl AnalysisConfig
impl AnalysisConfig
Sourcepub fn with_sensitivity_thresholds(
sensitivity_threshold: f32,
fp32_threshold: f32,
aggressive_threshold: f32,
) -> Self
pub fn with_sensitivity_thresholds( sensitivity_threshold: f32, fp32_threshold: f32, aggressive_threshold: f32, ) -> Self
Create a new analysis configuration with custom sensitivity thresholds
Sourcepub fn with_efficiency_weights(accuracy: f32, size: f32, speed: f32) -> Self
pub fn with_efficiency_weights(accuracy: f32, size: f32, speed: f32) -> Self
Create a new analysis configuration with custom efficiency weights
Sourcepub fn conservative() -> Self
pub fn conservative() -> Self
Create a conservative analysis configuration (higher thresholds)
Sourcepub fn aggressive() -> Self
pub fn aggressive() -> Self
Create an aggressive analysis configuration (lower thresholds)
Trait Implementations§
Source§impl Clone for AnalysisConfig
impl Clone for AnalysisConfig
Source§fn clone(&self) -> AnalysisConfig
fn clone(&self) -> AnalysisConfig
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 AnalysisConfig
impl Debug for AnalysisConfig
Auto Trait Implementations§
impl Freeze for AnalysisConfig
impl RefUnwindSafe for AnalysisConfig
impl Send for AnalysisConfig
impl Sync for AnalysisConfig
impl Unpin for AnalysisConfig
impl UnsafeUnpin for AnalysisConfig
impl UnwindSafe for AnalysisConfig
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