pub struct TransformerEncoderRecord<B>where
B: Backend,{
pub layers: <Vec<TransformerEncoderLayer<B>> as Module<B>>::Record,
pub d_model: EmptyRecord,
pub d_ff: EmptyRecord,
pub n_heads: EmptyRecord,
pub n_layers: EmptyRecord,
pub dropout: EmptyRecord,
pub norm_first: EmptyRecord,
pub quiet_softmax: EmptyRecord,
}Expand description
The record type for the module.
Fields§
§layers: <Vec<TransformerEncoderLayer<B>> as Module<B>>::RecordThe module record associative type.
d_model: EmptyRecord§d_ff: EmptyRecord§n_heads: EmptyRecord§n_layers: EmptyRecord§dropout: EmptyRecord§norm_first: EmptyRecord§quiet_softmax: EmptyRecordTrait Implementations§
Source§impl<B> Record<B> for TransformerEncoderRecord<B>where
B: Backend,
impl<B> Record<B> for TransformerEncoderRecord<B>where
B: Backend,
Source§type Item<S: PrecisionSettings> = TransformerEncoderRecordItem<B, S>
type Item<S: PrecisionSettings> = TransformerEncoderRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Source§fn into_item<S>(self) -> <TransformerEncoderRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
fn into_item<S>(self) -> <TransformerEncoderRecord<B> as Record<B>>::Item<S>where
S: PrecisionSettings,
Convert the current record into the corresponding item that follows the given settings.
Source§fn from_item<S>(
item: <TransformerEncoderRecord<B> as Record<B>>::Item<S>,
device: &<B as BackendTypes>::Device,
) -> TransformerEncoderRecord<B>where
S: PrecisionSettings,
fn from_item<S>(
item: <TransformerEncoderRecord<B> as Record<B>>::Item<S>,
device: &<B as BackendTypes>::Device,
) -> TransformerEncoderRecord<B>where
S: PrecisionSettings,
Convert the given item into a record.
Auto Trait Implementations§
impl<B> Freeze for TransformerEncoderRecord<B>
impl<B> !RefUnwindSafe for TransformerEncoderRecord<B>
impl<B> Send for TransformerEncoderRecord<B>
impl<B> Sync for TransformerEncoderRecord<B>
impl<B> Unpin for TransformerEncoderRecord<B>where
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
<B as BackendTypes>::QuantizedTensorPrimitive: Unpin,
<B as BackendTypes>::Device: Unpin,
impl<B> UnsafeUnpin for TransformerEncoderRecord<B>
impl<B> !UnwindSafe for TransformerEncoderRecord<B>
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