pub struct MixedPrecisionPass {
pub policy: MixedPrecisionPolicy,
}Expand description
Mixed-precision quantization pass.
Applies different precisions to different global variables based on
a MixedPrecisionPolicy. This allows keeping sensitive layers
(like Softmax or LayerNorm) at higher precision while quantizing
the bulk of computation to INT8 or F16.
Fields§
§policy: MixedPrecisionPolicyThe policy dictating per-variable precision.
Trait Implementations§
Source§impl Debug for MixedPrecisionPass
impl Debug for MixedPrecisionPass
Auto Trait Implementations§
impl Freeze for MixedPrecisionPass
impl RefUnwindSafe for MixedPrecisionPass
impl Send for MixedPrecisionPass
impl Sync for MixedPrecisionPass
impl Unpin for MixedPrecisionPass
impl UnsafeUnpin for MixedPrecisionPass
impl UnwindSafe for MixedPrecisionPass
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