pub struct BidiLayerPairRecord<M>where
M: Module + ModuleDisplay + Module,{
pub straight_norm: <RmsNorm as Module>::Record,
pub reverse_norm: <RmsNorm as Module>::Record,
pub straight_block: <M as Module>::Record,
pub reverse_block: <M as Module>::Record,
pub output_merge: <OutputMerge 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§
§straight_norm: <RmsNorm as Module>::RecordThe module record associative type.
reverse_norm: <RmsNorm as Module>::RecordThe module record associative type.
straight_block: <M as Module>::RecordThe module record associative type.
reverse_block: <M as Module>::RecordThe module record associative type.
output_merge: <OutputMerge 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 BidiLayerPairRecord<M>where
M: Module + ModuleDisplay + Module,
impl<M> Record for BidiLayerPairRecord<M>where
M: Module + ModuleDisplay + Module,
Auto Trait Implementations§
impl<M> !Freeze for BidiLayerPairRecord<M>
impl<M> !RefUnwindSafe for BidiLayerPairRecord<M>
impl<M> !UnwindSafe for BidiLayerPairRecord<M>
impl<M> Send for BidiLayerPairRecord<M>
impl<M> Sync for BidiLayerPairRecord<M>where
<M as Module>::Record: Sync,
impl<M> Unpin for BidiLayerPairRecord<M>where
<M as Module>::Record: Unpin,
impl<M> UnsafeUnpin for BidiLayerPairRecord<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