pub enum RoutingScoring {
Softmax,
SelectedSoftmax,
Sigmoid,
SqrtSoftplus,
}Expand description
Architecture-declared score transform, independent of native implementation.
Variants§
Softmax
Softmax across the entire expert axis, then gather selected scores.
SelectedSoftmax
Select logits, then softmax across selected slots only.
Sigmoid
Elementwise sigmoid before selection.
SqrtSoftplus
Elementwise square root of softplus before selection.
Trait Implementations§
Source§impl Clone for RoutingScoring
impl Clone for RoutingScoring
Source§fn clone(&self) -> RoutingScoring
fn clone(&self) -> RoutingScoring
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 RoutingScoring
Source§impl Debug for RoutingScoring
impl Debug for RoutingScoring
Source§impl<'de> Deserialize<'de> for RoutingScoring
impl<'de> Deserialize<'de> for RoutingScoring
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RoutingScoring
Source§impl PartialEq for RoutingScoring
impl PartialEq for RoutingScoring
Source§impl Serialize for RoutingScoring
impl Serialize for RoutingScoring
impl StructuralPartialEq for RoutingScoring
Auto Trait Implementations§
impl Freeze for RoutingScoring
impl RefUnwindSafe for RoutingScoring
impl Send for RoutingScoring
impl Sync for RoutingScoring
impl Unpin for RoutingScoring
impl UnsafeUnpin for RoutingScoring
impl UnwindSafe for RoutingScoring
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