pub enum FfnAct {
Silu,
GeluErf,
}Expand description
The gated FFN’s gate-branch activation: act(g)·u feeds down_proj.
One enum, so every forward and every hand-rolled backward in the
trainer names the same function instead of spelling SiLU inline.
Variants§
Implementations§
Trait Implementations§
impl Copy for FfnAct
impl Eq for FfnAct
impl StructuralPartialEq for FfnAct
Auto Trait Implementations§
impl Freeze for FfnAct
impl RefUnwindSafe for FfnAct
impl Send for FfnAct
impl Sync for FfnAct
impl Unpin for FfnAct
impl UnsafeUnpin for FfnAct
impl UnwindSafe for FfnAct
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.