pub struct CopyPlan {
pub dst_slots: Vec<u32>,
pub src_rows: Vec<u32>,
}Expand description
The copies a step needs before it can multiply.
dst_slots[i] is a cache slot; src_rows[i] is a layer-local
expert row, so it indexes this layer’s own host bank rather than a
flat table. Keeping it layer-local is what lets each layer’s weights
live in their own allocation, which in turn is what lets residency
(pinned / locked / pageable) differ per layer.
Fields§
§dst_slots: Vec<u32>§src_rows: Vec<u32>Implementations§
Trait Implementations§
impl Eq for CopyPlan
impl StructuralPartialEq for CopyPlan
Auto Trait Implementations§
impl Freeze for CopyPlan
impl RefUnwindSafe for CopyPlan
impl Send for CopyPlan
impl Sync for CopyPlan
impl Unpin for CopyPlan
impl UnsafeUnpin for CopyPlan
impl UnwindSafe for CopyPlan
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