pub struct LayerAttnState {
pub window: Vec<f32>,
pub compressor: Option<CompressorState>,
pub compress_kv_cache: Option<Vec<f32>>,
pub k_cache: Option<Vec<f32>>,
}Fields§
§window: Vec<f32>§compressor: Option<CompressorState>§compress_kv_cache: Option<Vec<f32>>§k_cache: Option<Vec<f32>>Implementations§
Source§impl LayerAttnState
impl LayerAttnState
pub fn new(c: &CompAttnCfg, max_seq: usize, index_hd: usize) -> Self
Auto Trait Implementations§
impl Freeze for LayerAttnState
impl RefUnwindSafe for LayerAttnState
impl Send for LayerAttnState
impl Sync for LayerAttnState
impl Unpin for LayerAttnState
impl UnwindSafe for LayerAttnState
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