pub enum ParallelNorm {
SharedNorm,
TwoNorms,
}Expand description
Which normed input the FFN reads in a parallel layer.
Variants§
The FFN reads the tensor attention read (attn_norm(x)).
TwoNorms
The FFN reads its own norm of the layer input (ffn_norm(x)).
Trait Implementations§
Source§impl Clone for ParallelNorm
impl Clone for ParallelNorm
impl Copy for ParallelNorm
Source§impl Debug for ParallelNorm
impl Debug for ParallelNorm
impl Eq for ParallelNorm
Source§impl PartialEq for ParallelNorm
impl PartialEq for ParallelNorm
impl StructuralPartialEq for ParallelNorm
Auto Trait Implementations§
impl Freeze for ParallelNorm
impl RefUnwindSafe for ParallelNorm
impl Send for ParallelNorm
impl Sync for ParallelNorm
impl Unpin for ParallelNorm
impl UnsafeUnpin for ParallelNorm
impl UnwindSafe for ParallelNorm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more