pub struct ModelState<'a> {
pub hash: NgramHashState<'a>,
pub layers: Vec<LayerAttnState>,
pub shared: SharedRuntime,
pub fcs: Vec<Vec<(f32, f32)>>,
}Fields§
§hash: NgramHashState<'a>§layers: Vec<LayerAttnState>§fcs: Vec<Vec<(f32, f32)>>Implementations§
Source§impl<'a> ModelState<'a>
impl<'a> ModelState<'a>
pub fn new(c: &ModelCfg, t: &'a EngramTables) -> Self
Auto Trait Implementations§
impl<'a> Freeze for ModelState<'a>
impl<'a> RefUnwindSafe for ModelState<'a>
impl<'a> Send for ModelState<'a>
impl<'a> Sync for ModelState<'a>
impl<'a> Unpin for ModelState<'a>
impl<'a> UnwindSafe for ModelState<'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