pub struct GateAttrs {
pub n_group: u32,
pub topk_group: u32,
pub top_k: u32,
pub routed_scaling: f32,
pub num_experts: u32,
}Fields§
§n_group: u32§topk_group: u32§top_k: u32§routed_scaling: f32§num_experts: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GateAttrs
impl RefUnwindSafe for GateAttrs
impl Send for GateAttrs
impl Sync for GateAttrs
impl Unpin for GateAttrs
impl UnsafeUnpin for GateAttrs
impl UnwindSafe for GateAttrs
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more