pub struct Qi21BlockRef<'a> {
pub w: [usize; 7],
pub norm_q: &'a [f32],
pub norm_k: &'a [f32],
}Expand description
One block’s weights: tensor indices of to_q, to_k, to_v, to_out.0, gate_layer, proj (up), out (down) and the per-head q/k norm weights.
Fields§
§w: [usize; 7]§norm_q: &'a [f32]§norm_k: &'a [f32]Auto Trait Implementations§
impl<'a> Freeze for Qi21BlockRef<'a>
impl<'a> RefUnwindSafe for Qi21BlockRef<'a>
impl<'a> Send for Qi21BlockRef<'a>
impl<'a> Sync for Qi21BlockRef<'a>
impl<'a> Unpin for Qi21BlockRef<'a>
impl<'a> UnsafeUnpin for Qi21BlockRef<'a>
impl<'a> UnwindSafe for Qi21BlockRef<'a>
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