pub struct VocabNetworkRecord<M>where
M: Module + ModuleDisplay + Module,{
pub embedding: <Embedding as Module>::Record,
pub layers: <Layers<M> as Module>::Record,
pub norm_f: <RmsNorm as Module>::Record,
pub lm_head: <Option<Linear> as Module>::Record,
}Expand description
The record type for the module.
Fields§
§embedding: <Embedding as Module>::RecordThe module record associative type.
layers: <Layers<M> as Module>::RecordThe module record associative type.
norm_f: <RmsNorm as Module>::RecordThe module record associative type.
lm_head: <Option<Linear> as Module>::RecordThe module record associative type.
Trait Implementations§
Source§impl<M> Record for VocabNetworkRecord<M>where
M: Module + ModuleDisplay + Module,
impl<M> Record for VocabNetworkRecord<M>where
M: Module + ModuleDisplay + Module,
Auto Trait Implementations§
impl<M> !Freeze for VocabNetworkRecord<M>
impl<M> !RefUnwindSafe for VocabNetworkRecord<M>
impl<M> !UnwindSafe for VocabNetworkRecord<M>
impl<M> Send for VocabNetworkRecord<M>
impl<M> Sync for VocabNetworkRecord<M>where
<M as Module>::Record: Sync,
impl<M> Unpin for VocabNetworkRecord<M>where
<M as Module>::Record: Unpin,
impl<M> UnsafeUnpin for VocabNetworkRecord<M>
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