pub struct KordModelRecordItem<B: Backend, S: PrecisionSettings> {
pub mha: <<MultiHeadAttention<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub norm1: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub trunk_in: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub trunk_dropout: <<Dropout as Module<B>>::Record as Record<B>>::Item<S>,
pub trunk_out: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub norm2: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub output: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>,
pub num_chunks: <<usize as Module<B>>::Record as Record<B>>::Item<S>,
pub chunk_size: <<usize as Module<B>>::Record as Record<B>>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§mha: <<MultiHeadAttention<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
norm1: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
trunk_in: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
trunk_dropout: <<Dropout as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
trunk_out: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
norm2: <<LayerNorm<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
output: <<Linear<B> as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
num_chunks: <<usize as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
chunk_size: <<usize as Module<B>>::Record as Record<B>>::Item<S>Field to be serialized.
Trait Implementations§
Source§impl<B: Backend, S: PrecisionSettings> Clone for KordModelRecordItem<B, S>
impl<B: Backend, S: PrecisionSettings> Clone for KordModelRecordItem<B, S>
Source§impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for KordModelRecordItem<B, S>where
<<MultiHeadAttention<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<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,
<<Dropout as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<usize as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for KordModelRecordItem<B, S>where
<<MultiHeadAttention<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<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,
<<Dropout as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<usize as Module<B>>::Record 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 KordModelRecordItem<B, S>where
<<MultiHeadAttention<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<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,
<<Dropout as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<usize as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, S: PrecisionSettings> Serialize for KordModelRecordItem<B, S>where
<<MultiHeadAttention<B> as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<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,
<<Dropout as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
<<usize as Module<B>>::Record as Record<B>>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, S> !RefUnwindSafe for KordModelRecordItem<B, S>
impl<B, S> !UnwindSafe for KordModelRecordItem<B, S>
impl<B, S> Freeze for KordModelRecordItem<B, S>
impl<B, S> Send for KordModelRecordItem<B, S>
impl<B, S> Sync for KordModelRecordItem<B, S>
impl<B, S> Unpin for KordModelRecordItem<B, S>
impl<B, S> UnsafeUnpin for KordModelRecordItem<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