pub struct BidiLayerPairRecordItem<M, S: PrecisionSettings>where
M: Module + ModuleDisplay + Module,{
pub straight_norm: <<RmsNorm as Module>::Record as Record>::Item<S>,
pub reverse_norm: <<RmsNorm as Module>::Record as Record>::Item<S>,
pub straight_block: <<M as Module>::Record as Record>::Item<S>,
pub reverse_block: <<M as Module>::Record as Record>::Item<S>,
pub output_merge: <<OutputMerge as Module>::Record as Record>::Item<S>,
pub class_latents: <EmptyRecord as Record>::Item<S>,
pub class_latents_emb: <<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§straight_norm: <<RmsNorm as Module>::Record as Record>::Item<S>Field to be serialized.
reverse_norm: <<RmsNorm as Module>::Record as Record>::Item<S>Field to be serialized.
straight_block: <<M as Module>::Record as Record>::Item<S>Field to be serialized.
reverse_block: <<M as Module>::Record as Record>::Item<S>Field to be serialized.
output_merge: <<OutputMerge as Module>::Record as Record>::Item<S>Field to be serialized.
class_latents: <EmptyRecord as Record>::Item<S>Field to be serialized.
class_latents_emb: <<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>Field to be serialized.
Trait Implementations§
Source§impl<M, S: PrecisionSettings> Clone for BidiLayerPairRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<RmsNorm as Module>::Record as Record>::Item<S>: Clone,
<<M as Module>::Record as Record>::Item<S>: Clone,
<<OutputMerge as Module>::Record as Record>::Item<S>: Clone,
<EmptyRecord as Record>::Item<S>: Clone,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Clone,
impl<M, S: PrecisionSettings> Clone for BidiLayerPairRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<RmsNorm as Module>::Record as Record>::Item<S>: Clone,
<<M as Module>::Record as Record>::Item<S>: Clone,
<<OutputMerge as Module>::Record as Record>::Item<S>: Clone,
<EmptyRecord as Record>::Item<S>: Clone,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Clone,
Source§impl<'de, M, S: PrecisionSettings> Deserialize<'de> for BidiLayerPairRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<RmsNorm as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<M as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<OutputMerge as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, M, S: PrecisionSettings> Deserialize<'de> for BidiLayerPairRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<RmsNorm as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<M as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<OutputMerge as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<M, S: PrecisionSettings> Serialize for BidiLayerPairRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<RmsNorm as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<M as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<OutputMerge as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<M, S: PrecisionSettings> Serialize for BidiLayerPairRecordItem<M, S>where
M: Module + ModuleDisplay + Module,
<<RmsNorm as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<M as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<<OutputMerge as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record>::Item<S>: Serialize + DeserializeOwned,
<<Option<Param<Tensor<2>>> as Module>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<M, S> !RefUnwindSafe for BidiLayerPairRecordItem<M, S>
impl<M, S> !UnwindSafe for BidiLayerPairRecordItem<M, S>
impl<M, S> Freeze for BidiLayerPairRecordItem<M, S>where
<<M as Module>::Record as Record>::Item<S>: Freeze,
impl<M, S> Send for BidiLayerPairRecordItem<M, S>where
<<M as Module>::Record as Record>::Item<S>: Send,
impl<M, S> Sync for BidiLayerPairRecordItem<M, S>where
<<M as Module>::Record as Record>::Item<S>: Sync,
impl<M, S> Unpin for BidiLayerPairRecordItem<M, S>
impl<M, S> UnsafeUnpin for BidiLayerPairRecordItem<M, S>where
<<M as Module>::Record as Record>::Item<S>: 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