pub struct ParallelResidual {
pub arch: &'static str,
pub norm: ParallelNorm,
pub when: ParallelWhen,
pub second_norm: Option<&'static str>,
pub lines: &'static str,
}Expand description
One graph that builds the parallel residual.
Fields§
§arch: &'static str§norm: ParallelNormThe arm a parallel layer takes when second_norm is absent or
None.
when: ParallelWhen§second_norm: Option<&'static str>A per-layer OPTIONAL tensor whose presence turns the layer into
the two-norm arm: falcon.cpp:35-36,79-85’s attn_norm_2, which
norms the layer input FOR ATTENTION while attn_norm keeps
feeding the FFN (crate::norm_sites::ATTN_NORM_2_FEEDS_ATTENTION
crosses the two slots on such a layer).
lines: &'static strTrait Implementations§
Source§impl Clone for ParallelResidual
impl Clone for ParallelResidual
impl Copy for ParallelResidual
Auto Trait Implementations§
impl Freeze for ParallelResidual
impl RefUnwindSafe for ParallelResidual
impl Send for ParallelResidual
impl Sync for ParallelResidual
impl Unpin for ParallelResidual
impl UnsafeUnpin for ParallelResidual
impl UnwindSafe for ParallelResidual
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