pub enum Slot {
Undecided,
Off,
}Expand description
The per-pipeline state: undecided until the first forward, then off or on with its bank.
Variants§
Implementations§
Source§impl Slot
impl Slot
pub fn is_undecided(&self) -> bool
Sourcepub fn is_dynamic(&self, li: usize, host_tail: bool) -> bool
pub fn is_dynamic(&self, li: usize, host_tail: bool) -> bool
Does layer li run its experts through the bank? host_tail = the
walk reached this layer after a device graph prefix handed it over:
with a bank present every such MoE layer takes the bank (a whole-layer
per-op path would stream experts through the residency arena).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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