pub struct DsaBlockRecordItem<B: Backend, S: PrecisionSettings> {
pub attention_norm: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub q_score: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub k_score: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub q_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub k_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub v_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub o_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub ffn_norm: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub ffn: <<DsaMlp<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub config: <EmptyRecord as Record<B>>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§attention_norm: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
q_score: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
k_score: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
q_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
k_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
v_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
o_proj: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
ffn_norm: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
ffn: <<DsaMlp<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
config: <EmptyRecord as Record<B>>::Item<S>Field to be serialized.
Trait Implementations§
Source§impl<B: Backend, S: PrecisionSettings> Clone for DsaBlockRecordItem<B, S>
impl<B: Backend, S: PrecisionSettings> Clone for DsaBlockRecordItem<B, S>
Source§impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for DsaBlockRecordItem<B, S>where
<<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<DsaMlp<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for DsaBlockRecordItem<B, S>where
<<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<DsaMlp<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record<B>>::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<B: Backend, S: PrecisionSettings> Serialize for DsaBlockRecordItem<B, S>where
<<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<DsaMlp<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, S: PrecisionSettings> Serialize for DsaBlockRecordItem<B, S>where
<<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<DsaMlp<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<EmptyRecord as Record<B>>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, S> Freeze for DsaBlockRecordItem<B, S>
impl<B, S> !RefUnwindSafe for DsaBlockRecordItem<B, S>
impl<B, S> Send for DsaBlockRecordItem<B, S>
impl<B, S> Sync for DsaBlockRecordItem<B, S>
impl<B, S> Unpin for DsaBlockRecordItem<B, S>
impl<B, S> UnsafeUnpin for DsaBlockRecordItem<B, S>
impl<B, S> !UnwindSafe for DsaBlockRecordItem<B, S>
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