pub enum GatingSpec {
Softplus,
Pass,
Sigmoid {
feature: String,
},
ReLU,
Swish,
Gelu,
}Variants§
Softplus
Lucene-compatible softplus gating.
Pass
Raw signal score scales the fused logit.
Sigmoid
Sigmoid gating with the named feature.
ReLU
ReLU gate.
Swish
Swish gate.
Gelu
GELU gate.
Trait Implementations§
Source§impl Clone for GatingSpec
impl Clone for GatingSpec
Source§fn clone(&self) -> GatingSpec
fn clone(&self) -> GatingSpec
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 moreAuto Trait Implementations§
impl Freeze for GatingSpec
impl RefUnwindSafe for GatingSpec
impl Send for GatingSpec
impl Sync for GatingSpec
impl Unpin for GatingSpec
impl UnsafeUnpin for GatingSpec
impl UnwindSafe for GatingSpec
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