pub struct ModelTypeMatch {
pub model_type: &'static str,
pub hidden_size: Option<usize>,
}Expand description
Declares which (model_type, hidden_size) pairs a kernel target supports.
Parsed from [[model_types]] in MODEL.toml at build time.
Fields§
§model_type: &'static strNone = wildcard (matches any hidden_size not caught by a more specific entry).
Auto Trait Implementations§
impl Freeze for ModelTypeMatch
impl RefUnwindSafe for ModelTypeMatch
impl Send for ModelTypeMatch
impl Sync for ModelTypeMatch
impl Unpin for ModelTypeMatch
impl UnwindSafe for ModelTypeMatch
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