pub enum PrecisionLoweringPlan {
DefaultF32,
NativeF16 {
max_abs_operand: f32,
},
PolynomialTranscendental {
op: TranscendentalOp,
argument_bound: f32,
degree: u8,
},
}Expand description
Concrete lower/emit plan selected from a foundation precision hint.
Variants§
DefaultF32
Keep the default f32/device-transcendental lowering.
NativeF16
Emit this site through native f16 ALU and widen the result to f32.
PolynomialTranscendental
Emit a bounded polynomial for the transcendental instead of a native device call.
Trait Implementations§
Source§impl Clone for PrecisionLoweringPlan
impl Clone for PrecisionLoweringPlan
Source§fn clone(&self) -> PrecisionLoweringPlan
fn clone(&self) -> PrecisionLoweringPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrecisionLoweringPlan
Source§impl Debug for PrecisionLoweringPlan
impl Debug for PrecisionLoweringPlan
Source§impl PartialEq for PrecisionLoweringPlan
impl PartialEq for PrecisionLoweringPlan
Source§fn eq(&self, other: &PrecisionLoweringPlan) -> bool
fn eq(&self, other: &PrecisionLoweringPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrecisionLoweringPlan
Auto Trait Implementations§
impl Freeze for PrecisionLoweringPlan
impl RefUnwindSafe for PrecisionLoweringPlan
impl Send for PrecisionLoweringPlan
impl Sync for PrecisionLoweringPlan
impl Unpin for PrecisionLoweringPlan
impl UnsafeUnpin for PrecisionLoweringPlan
impl UnwindSafe for PrecisionLoweringPlan
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