pub struct Sublayer<A = f64, K = Biased, D = Ix2>where
D: Dimension,{ /* private fields */ }Expand description
A residual connection followed by a layer norm Transformer
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A, K, D> Freeze for Sublayer<A, K, D>
impl<A, K, D> RefUnwindSafe for Sublayer<A, K, D>where
D: RefUnwindSafe,
K: RefUnwindSafe,
<D as Dimension>::Smaller: RefUnwindSafe,
A: RefUnwindSafe,
impl<A, K, D> Send for Sublayer<A, K, D>
impl<A, K, D> Sync for Sublayer<A, K, D>
impl<A, K, D> Unpin for Sublayer<A, K, D>
impl<A, K, D> UnwindSafe for Sublayer<A, K, D>
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