pub enum GatingMode {
Soft,
Hard {
top_k: usize,
},
}Available on crate feature
alloc only.Expand description
Variants§
Soft
All experts receive every sample, weighted by gating probability.
Hard
Only the top-k experts receive the sample (sparse routing).
Trait Implementations§
Source§impl Clone for GatingMode
impl Clone for GatingMode
Source§fn clone(&self) -> GatingMode
fn clone(&self) -> GatingMode
Returns a duplicate of the value. Read more
1.0.0 · 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 GatingMode
impl RefUnwindSafe for GatingMode
impl Send for GatingMode
impl Sync for GatingMode
impl Unpin for GatingMode
impl UnsafeUnpin for GatingMode
impl UnwindSafe for GatingMode
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