pub enum GraphAct {
Silu,
GeluErf,
}Expand description
Activation of a graph layer’s dense FFN, act(gate)·up. The code is
the word the kernels read (silu_mul_pre‘s _c, the fused gate+up
kernels’ _p1): 0 keeps the historical SiLU expression untouched.
Variants§
Silu
GeluErf
Exact erf GELU (HF gelu), erf by Abramowitz–Stegun 7.1.26 — the
formula inference::erf_f32 uses on the host.
Implementations§
Trait Implementations§
impl Copy for GraphAct
impl Eq for GraphAct
impl StructuralPartialEq for GraphAct
Auto Trait Implementations§
impl Freeze for GraphAct
impl RefUnwindSafe for GraphAct
impl Send for GraphAct
impl Sync for GraphAct
impl Unpin for GraphAct
impl UnsafeUnpin for GraphAct
impl UnwindSafe for GraphAct
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.