pub struct FfnSeg {
pub gate: QTensor,
pub up: QTensor,
pub down: QTensor,
pub start: usize,
pub width: usize,
}Expand description
One task tube: a contiguous slice of a layer’s FFN neurons, stored
as its own [w, hidden] / [hidden, w] triple. start is the
neuron’s index in the layer’s FULL space (core first, then tubes in
order) — the bit a task mask sets to switch this tube on.
Fields§
§gate: QTensor§up: QTensor§down: QTensor§start: usize§width: usizeAuto Trait Implementations§
impl Freeze for FfnSeg
impl RefUnwindSafe for FfnSeg
impl Send for FfnSeg
impl Sync for FfnSeg
impl Unpin for FfnSeg
impl UnsafeUnpin for FfnSeg
impl UnwindSafe for FfnSeg
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