pub enum ExtMathFn {
Erf,
Erfc,
Sin,
Cos,
Atan,
Tanh,
Cbrt,
Rsqrt,
}Expand description
A transcendental function from the OpenCL.std extended instruction set
not already covered by UnaryOp.
These extend OpenCL extended-instruction-set coverage beyond the relu/gelu/exp/log set with the elementary functions needed for activation fusions, error-function-based GELU, and angle math.
Variants§
Erf
erf(x) — Gauss error function (exact-GELU building block).
Erfc
erfc(x) — complementary error function.
Sin
sin(x).
Cos
cos(x).
Atan
atan(x).
Tanh
tanh(x) (also reachable via UnaryOp::Tanh).
Cbrt
cbrt(x) — cube root.
Rsqrt
rsqrt(x) — reciprocal square root.
Implementations§
Trait Implementations§
impl Copy for ExtMathFn
impl Eq for ExtMathFn
impl StructuralPartialEq for ExtMathFn
Auto Trait Implementations§
impl Freeze for ExtMathFn
impl RefUnwindSafe for ExtMathFn
impl Send for ExtMathFn
impl Sync for ExtMathFn
impl Unpin for ExtMathFn
impl UnsafeUnpin for ExtMathFn
impl UnwindSafe for ExtMathFn
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