pub struct ExpertLayerLoc {
pub layer: usize,
pub gate: SliceLoc,
pub up: SliceLoc,
pub down: SliceLoc,
}Expand description
The three projections of one MoE layer.
Fields§
§layer: usize§gate: SliceLoc§up: SliceLoc§down: SliceLocTrait Implementations§
Source§impl Clone for ExpertLayerLoc
impl Clone for ExpertLayerLoc
Source§fn clone(&self) -> ExpertLayerLoc
fn clone(&self) -> ExpertLayerLoc
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 moreSource§impl Debug for ExpertLayerLoc
impl Debug for ExpertLayerLoc
impl Copy for ExpertLayerLoc
Auto Trait Implementations§
impl Freeze for ExpertLayerLoc
impl RefUnwindSafe for ExpertLayerLoc
impl Send for ExpertLayerLoc
impl Sync for ExpertLayerLoc
impl Unpin for ExpertLayerLoc
impl UnwindSafe for ExpertLayerLoc
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