pub struct KordModelRecord<B: Backend> {
pub mha: <MultiHeadAttention<B> as Module<B>>::Record,
pub norm1: <LayerNorm<B> as Module<B>>::Record,
pub trunk_in: <Linear<B> as Module<B>>::Record,
pub trunk_dropout: <Dropout as Module<B>>::Record,
pub trunk_out: <Linear<B> as Module<B>>::Record,
pub norm2: <LayerNorm<B> as Module<B>>::Record,
pub output: <Linear<B> as Module<B>>::Record,
pub num_chunks: <usize as Module<B>>::Record,
pub chunk_size: <usize as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§mha: <MultiHeadAttention<B> as Module<B>>::RecordThe module record associative type.
norm1: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
trunk_in: <Linear<B> as Module<B>>::RecordThe module record associative type.
trunk_dropout: <Dropout as Module<B>>::RecordThe module record associative type.
trunk_out: <Linear<B> as Module<B>>::RecordThe module record associative type.
norm2: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
output: <Linear<B> as Module<B>>::RecordThe module record associative type.
num_chunks: <usize as Module<B>>::RecordThe module record associative type.
chunk_size: <usize as Module<B>>::RecordThe module record associative type.
Trait Implementations§
Source§impl<B: Backend> Record<B> for KordModelRecord<B>
impl<B: Backend> Record<B> for KordModelRecord<B>
Source§type Item<S: PrecisionSettings> = KordModelRecordItem<B, S>
type Item<S: PrecisionSettings> = KordModelRecordItem<B, S>
Type of the item that can be serialized and deserialized.
Auto Trait Implementations§
impl<B> !Freeze for KordModelRecord<B>
impl<B> !RefUnwindSafe for KordModelRecord<B>
impl<B> !Sync for KordModelRecord<B>
impl<B> !UnwindSafe for KordModelRecord<B>
impl<B> Send for KordModelRecord<B>
impl<B> Unpin for KordModelRecord<B>where
<B as Backend>::FloatTensorPrimitive: Unpin,
<B as Backend>::QuantizedTensorPrimitive: Unpin,
<B as Backend>::Device: Unpin,
impl<B> UnsafeUnpin for KordModelRecord<B>where
<B as Backend>::FloatTensorPrimitive: UnsafeUnpin,
<B as Backend>::QuantizedTensorPrimitive: UnsafeUnpin,
<B as Backend>::Device: UnsafeUnpin,
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