pub struct Mlp {
pub layers: Vec<Lin>,
pub stab: Option<Lin>,
pub residual: bool,
}Expand description
ARM / IFCE MLP: hidden ReLU layers (square hidden layers residual inside
the ReLU when residual), a linear output layer, and an optional linear
stabiliser branch over the input added to the output.
Fields§
§layers: Vec<Lin>Layers in order.
stab: Option<Lin>Stabiliser branch (input → output).
residual: boolSquare hidden layers carry a residual connection.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mlp
impl RefUnwindSafe for Mlp
impl Send for Mlp
impl Sync for Mlp
impl Unpin for Mlp
impl UnsafeUnpin for Mlp
impl UnwindSafe for Mlp
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