pub struct EffectivePrecision {
pub requested: PrecisionPolicy,
pub activation_storage: StoragePrecision,
pub accumulation: StoragePrecision,
pub optimizer_state: StoragePrecision,
pub scaler_required: bool,
}Expand description
The planes a resolved precision selection actually runs at, as reported against one runtime’s device contract.
Fields§
§requested: PrecisionPolicyThe request that was resolved.
activation_storage: StoragePrecisionEffective activation/operand storage. Differs from the request when the environment channel silently fell back.
accumulation: StoragePrecisionAccumulation precision inside lowered operations. Always F32 in the admitted configurations.
optimizer_state: StoragePrecisionOptimizer parameter/moment state precision. Always F32 in the admitted configurations.
scaler_required: boolWhether the effective configuration requires a gradient scaler for
training (F16 storage routes admit only scaled training).
Implementations§
Trait Implementations§
Source§impl Clone for EffectivePrecision
impl Clone for EffectivePrecision
impl Copy for EffectivePrecision
Source§impl Debug for EffectivePrecision
impl Debug for EffectivePrecision
impl Eq for EffectivePrecision
Source§impl PartialEq for EffectivePrecision
impl PartialEq for EffectivePrecision
impl StructuralPartialEq for EffectivePrecision
Auto Trait Implementations§
impl Forget for EffectivePrecision
impl Freeze for EffectivePrecision
impl Move for EffectivePrecision
impl RefUnwindSafe for EffectivePrecision
impl Send for EffectivePrecision
impl Sync for EffectivePrecision
impl Unpin for EffectivePrecision
impl UnsafeUnpin for EffectivePrecision
impl UnwindSafe for EffectivePrecision
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