pub struct LayerRecord<M>where
M: Module + ModuleDisplay + Module,{
pub norm: <RmsNorm as Module>::Record,
pub mamba_block: <M as Module>::Record,
pub class_latents: EmptyRecord,
pub class_latents_emb: <Option<Param<Tensor<2>>> as Module>::Record,
}Expand description
The record type for the module.
Fields§
§norm: <RmsNorm as Module>::RecordThe module record associative type.
mamba_block: <M as Module>::RecordThe module record associative type.
class_latents: EmptyRecord§class_latents_emb: <Option<Param<Tensor<2>>> as Module>::RecordThe module record associative type.
Trait Implementations§
Source§impl<M> Record for LayerRecord<M>where
M: Module + ModuleDisplay + Module,
impl<M> Record for LayerRecord<M>where
M: Module + ModuleDisplay + Module,
Auto Trait Implementations§
impl<M> !Freeze for LayerRecord<M>
impl<M> !RefUnwindSafe for LayerRecord<M>
impl<M> !UnwindSafe for LayerRecord<M>
impl<M> Send for LayerRecord<M>
impl<M> Sync for LayerRecord<M>where
<M as Module>::Record: Sync,
impl<M> Unpin for LayerRecord<M>where
<M as Module>::Record: Unpin,
impl<M> UnsafeUnpin for LayerRecord<M>where
<M as Module>::Record: UnsafeUnpin,
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