pub struct ModelInfo {
pub num_layers: usize,
pub hidden_dim: usize,
pub num_heads: usize,
pub name: String,
}Expand description
Model information
Fields§
§num_layers: usizeNumber of layers
Hidden dimension
num_heads: usizeNumber of attention heads
name: StringModel name
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnwindSafe for ModelInfo
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