Struct DenseConfig
pub struct DenseConfig {
pub embedding: usize,
pub ffn: usize,
pub heads: usize,
pub kv_heads: usize,
pub head_dim: usize,
pub max_context: usize,
pub vocabulary: usize,
pub rope_base: f32,
pub rope_scale: f32,
}Fields§
§embedding: usize§ffn: usize§heads: usize§kv_heads: usize§head_dim: usize§max_context: usize§vocabulary: usize§rope_base: f32§rope_scale: f32Trait Implementations§
§impl Clone for DenseConfig
impl Clone for DenseConfig
§fn clone(&self) -> DenseConfig
fn clone(&self) -> DenseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DenseConfig
§impl Debug for DenseConfig
impl Debug for DenseConfig
§impl PartialEq for DenseConfig
impl PartialEq for DenseConfig
impl StructuralPartialEq for DenseConfig
Auto Trait Implementations§
impl Freeze for DenseConfig
impl RefUnwindSafe for DenseConfig
impl Send for DenseConfig
impl Sync for DenseConfig
impl Unpin for DenseConfig
impl UnsafeUnpin for DenseConfig
impl UnwindSafe for DenseConfig
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