pub enum RoutingNormalization {
SelectedSum,
SelectedAndSharedSum,
None,
}Expand description
Normalization policy for selected route coefficients.
Variants§
SelectedSum
Selected scores are normalized by their sum.
Joint normalization over selected routed experts and always-on experts.
None
No such transformation is applied.
Trait Implementations§
Source§impl Clone for RoutingNormalization
impl Clone for RoutingNormalization
Source§fn clone(&self) -> RoutingNormalization
fn clone(&self) -> RoutingNormalization
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 RoutingNormalization
Source§impl Debug for RoutingNormalization
impl Debug for RoutingNormalization
Source§impl<'de> Deserialize<'de> for RoutingNormalization
impl<'de> Deserialize<'de> for RoutingNormalization
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 RoutingNormalization
Source§impl PartialEq for RoutingNormalization
impl PartialEq for RoutingNormalization
Source§impl Serialize for RoutingNormalization
impl Serialize for RoutingNormalization
impl StructuralPartialEq for RoutingNormalization
Auto Trait Implementations§
impl Freeze for RoutingNormalization
impl RefUnwindSafe for RoutingNormalization
impl Send for RoutingNormalization
impl Sync for RoutingNormalization
impl Unpin for RoutingNormalization
impl UnsafeUnpin for RoutingNormalization
impl UnwindSafe for RoutingNormalization
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