pub struct MlpRecord<B: Backend> {
pub linears: <Vec<Linear<B>> as Module<B>>::Record,
pub norm: <LayerNorm<B> as Module<B>>::Record,
pub dropout: <Dropout as Module<B>>::Record,
pub activation: <ReLU as Module<B>>::Record,
}Expand description
The record type for the module.
Fields§
§linears: <Vec<Linear<B>> as Module<B>>::RecordThe module record associative type.
norm: <LayerNorm<B> as Module<B>>::RecordThe module record associative type.
dropout: <Dropout as Module<B>>::RecordThe module record associative type.
activation: <ReLU as Module<B>>::RecordThe module record associative type.
Trait Implementations§
source§impl<B: Backend> Record for MlpRecord<B>
impl<B: Backend> Record for MlpRecord<B>
Auto Trait Implementations§
impl<B> RefUnwindSafe for MlpRecord<B>where
<B as Backend>::TensorPrimitive<1>: RefUnwindSafe,
<B as Backend>::TensorPrimitive<2>: RefUnwindSafe,
impl<B> Send for MlpRecord<B>
impl<B> Sync for MlpRecord<B>
impl<B> Unpin for MlpRecord<B>
impl<B> UnwindSafe for MlpRecord<B>where
<B as Backend>::TensorPrimitive<1>: UnwindSafe,
<B as Backend>::TensorPrimitive<2>: 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