Struct candle_transformers::models::llama2_c::Cache
source · pub struct Cache {
pub use_kv_cache: bool,
pub kvs: Arc<Mutex<Vec<Option<(Tensor, Tensor)>>>>,
pub cos: Tensor,
pub sin: Tensor,
/* private fields */
}Fields§
§use_kv_cache: bool§kvs: Arc<Mutex<Vec<Option<(Tensor, Tensor)>>>>§cos: Tensor§sin: TensorImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl !UnwindSafe for Cache
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