pub struct BaselineTransformerRecord<B: Backend> {
pub embedding: <Embedding<B> as Module<B>>::Record,
pub blocks: <Vec<BaselineTransformerBlock<B>> as Module<B>>::Record,
pub final_norm: <RmsNorm<B> as Module<B>>::Record,
pub lm_head: <Linear<B> as Module<B>>::Record,
pub config: <Ignored<DdlConfig> as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§embedding: <Embedding<B> as Module<B>>::RecordThe module record associative type.
blocks: <Vec<BaselineTransformerBlock<B>> as Module<B>>::RecordThe module record associative type.
final_norm: <RmsNorm<B> as Module<B>>::RecordThe module record associative type.
lm_head: <Linear<B> as Module<B>>::RecordThe module record associative type.
config: <Ignored<DdlConfig> as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for BaselineTransformerRecord<B>
impl<B: Backend> Record<B> for BaselineTransformerRecord<B>
Source§type Item<S: PrecisionSettings> = BaselineTransformerRecordItem<B, S>
type Item<S: PrecisionSettings> = BaselineTransformerRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for BaselineTransformerRecord<B>
impl<B> !RefUnwindSafe for BaselineTransformerRecord<B>
impl<B> Send for BaselineTransformerRecord<B>
impl<B> !Sync for BaselineTransformerRecord<B>
impl<B> Unpin for BaselineTransformerRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnsafeUnpin for BaselineTransformerRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as Backend>::Device: UnsafeUnpin,
impl<B> !UnwindSafe for BaselineTransformerRecord<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