Struct burn_core::nn::transformer::TransformerDecoderRecordItem
source · pub struct TransformerDecoderRecordItem<B: Backend, S: PrecisionSettings> {
pub layers: <<Vec<TransformerDecoderLayer<B>> as Module<B>>::Record as Record>::Item<S>,
}Expand description
The record item type for the module.
Fields§
§layers: <<Vec<TransformerDecoderLayer<B>> as Module<B>>::Record as Record>::Item<S>Field to be serialized.
Trait Implementations§
source§impl<B: Clone + Backend, S: Clone + PrecisionSettings> Clone for TransformerDecoderRecordItem<B, S>
impl<B: Clone + Backend, S: Clone + PrecisionSettings> Clone for TransformerDecoderRecordItem<B, S>
source§fn clone(&self) -> TransformerDecoderRecordItem<B, S>
fn clone(&self) -> TransformerDecoderRecordItem<B, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<B: Debug + Backend, S: Debug + PrecisionSettings> Debug for TransformerDecoderRecordItem<B, S>
impl<B: Debug + Backend, S: Debug + PrecisionSettings> Debug for TransformerDecoderRecordItem<B, S>
source§impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for TransformerDecoderRecordItem<B, S>where
<<Vec<TransformerDecoderLayer<B>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<'de, B: Backend, S: PrecisionSettings> Deserialize<'de> for TransformerDecoderRecordItem<B, S>where <<Vec<TransformerDecoderLayer<B>> as Module<B>>::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<B: Backend, S: PrecisionSettings> Serialize for TransformerDecoderRecordItem<B, S>where
<<Vec<TransformerDecoderLayer<B>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
impl<B: Backend, S: PrecisionSettings> Serialize for TransformerDecoderRecordItem<B, S>where <<Vec<TransformerDecoderLayer<B>> as Module<B>>::Record as Record>::Item<S>: Serialize + DeserializeOwned,
Auto Trait Implementations§
impl<B, S> RefUnwindSafe for TransformerDecoderRecordItem<B, S>where <S as PrecisionSettings>::FloatElem: RefUnwindSafe,
impl<B, S> Send for TransformerDecoderRecordItem<B, S>
impl<B, S> Sync for TransformerDecoderRecordItem<B, S>
impl<B, S> Unpin for TransformerDecoderRecordItem<B, S>where <S as PrecisionSettings>::FloatElem: Unpin,
impl<B, S> UnwindSafe for TransformerDecoderRecordItem<B, S>where <S as PrecisionSettings>::FloatElem: UnwindSafe,
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