pub struct RouterWeights {
pub layer: u32,
pub gate_w: DevicePtr,
pub gate_bias: Vec<f32>,
}Expand description
The router of one layer alone: what predicting a layer’s selection from
an earlier layer’s input needs (see MoeV41::predict_launch).
Fields§
§layer: u32§gate_w: DevicePtrbf16 [n_routed, dim]
gate_bias: Vec<f32>Auto Trait Implementations§
impl Freeze for RouterWeights
impl RefUnwindSafe for RouterWeights
impl Send for RouterWeights
impl Sync for RouterWeights
impl Unpin for RouterWeights
impl UnwindSafe for RouterWeights
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