pub struct MoeExpertPlan {
pub counts: Matrix,
pub offsets: Matrix,
pub packed_token: Matrix,
pub packed_expert: Matrix,
pub packed_slot: Matrix,
pub inverse: Matrix,
}Expand description
Device-resident stable dropless route plan returned by moe_expert_plan.
Fields§
§counts: MatrixU32 route count for each expert, shaped [E].
offsets: MatrixU32 exclusive expert offsets, shaped [E + 1].
packed_token: MatrixU32 source-token index for each expert-major packed route.
packed_expert: MatrixU32 expert index for each expert-major packed route.
packed_slot: MatrixU32 original token-major flat route index for each packed route.
inverse: MatrixU32 packed position for each original token-major route.
Auto Trait Implementations§
impl !RefUnwindSafe for MoeExpertPlan
impl !Send for MoeExpertPlan
impl !Sync for MoeExpertPlan
impl !UnwindSafe for MoeExpertPlan
impl Forget for MoeExpertPlan
impl Freeze for MoeExpertPlanwhere
*const RcInner<RefCell<RuntimeState>> is !null: Freeze,
PhantomData<RcInner<RefCell<RuntimeState>>>: Freeze,
*const RcInner<StorageInner> is !null: Freeze,
PhantomData<RcInner<StorageInner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<usize>: Freeze,
*const RcInner<MatrixSemantic> is !null: Freeze,
PhantomData<RcInner<MatrixSemantic>>: Freeze,
PhantomData<Rc<()>>: Freeze,
impl Move for MoeExpertPlan
impl Unpin for MoeExpertPlan
impl UnsafeUnpin for MoeExpertPlanwhere
*const RcInner<RefCell<RuntimeState>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<RuntimeState>>>: UnsafeUnpin,
*const RcInner<StorageInner> is !null: UnsafeUnpin,
PhantomData<RcInner<StorageInner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
*const RcInner<MatrixSemantic> is !null: UnsafeUnpin,
PhantomData<RcInner<MatrixSemantic>>: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
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