pub struct DynamicQuantizer { /* private fields */ }Expand description
Dynamic Quantizer - Adapts quantization based on runtime statistics
Implementations§
Source§impl DynamicQuantizer
impl DynamicQuantizer
pub fn new() -> Self
pub fn with_config_file<P: AsRef<Path>>(path: P) -> Result<Self>
pub fn set_layer_context(&mut self, layer_name: String)
pub fn set_model_context(&mut self, model_name: String)
Sourcepub fn scheme_storage_mut(&mut self) -> &mut QuantizationSchemeStorage
pub fn scheme_storage_mut(&mut self) -> &mut QuantizationSchemeStorage
Get mutable reference to scheme storage for configuration
Sourcepub fn scheme_storage(&self) -> &QuantizationSchemeStorage
pub fn scheme_storage(&self) -> &QuantizationSchemeStorage
Get reference to scheme storage
Trait Implementations§
Source§impl Default for DynamicQuantizer
impl Default for DynamicQuantizer
Source§impl MobileQuantizer for DynamicQuantizer
impl MobileQuantizer for DynamicQuantizer
Source§fn get_scheme(&self) -> QuantizationScheme
fn get_scheme(&self) -> QuantizationScheme
Get the quantization scheme
Source§fn requires_calibration(&self) -> bool
fn requires_calibration(&self) -> bool
Check if calibration is required
Auto Trait Implementations§
impl !Freeze for DynamicQuantizer
impl RefUnwindSafe for DynamicQuantizer
impl Send for DynamicQuantizer
impl Sync for DynamicQuantizer
impl Unpin for DynamicQuantizer
impl UnsafeUnpin for DynamicQuantizer
impl UnwindSafe for DynamicQuantizer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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