pub struct HyperConnectionPreWeights {
pub fn_proj: WeightMatrix,
pub scale: [f32; 3],
pub base_pre: [f32; 4],
pub base_post: [f32; 4],
pub base_comb: [f32; 16],
}Expand description
Weights for the pre-sub-layer merge (build_hc_pre): projects the
flattened, RMS-normed hc streams to (2 + hc) * hc mix logits,
split into pre (hc), post (hc), and comb (hc*hc).
Fields§
§fn_proj: WeightMatrix§scale: [f32; 3][scale_pre, scale_post, scale_comb], real tensor shape {3}.
base_pre: [f32; 4]§base_post: [f32; 4]§base_comb: [f32; 16]Auto Trait Implementations§
impl Freeze for HyperConnectionPreWeights
impl RefUnwindSafe for HyperConnectionPreWeights
impl Send for HyperConnectionPreWeights
impl Sync for HyperConnectionPreWeights
impl Unpin for HyperConnectionPreWeights
impl UnsafeUnpin for HyperConnectionPreWeights
impl UnwindSafe for HyperConnectionPreWeights
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> 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