pub struct GdnSeqCfg<'a> {
pub nv: usize,
pub nk: usize,
pub dk: usize,
pub dv: usize,
pub kk: usize,
pub rms_eps: f64,
pub conv: &'a [f32],
pub a_log: &'a [f32],
pub dt_bias: &'a [f32],
pub norm: &'a [f32],
}Expand description
GDN geometry + frozen elementwise weights for the sequence ops.
Fields§
§nv: usize§nk: usize§dk: usize§dv: usize§kk: usize§rms_eps: f64§conv: &'a [f32]Depthwise conv taps [c_dim × kk], oldest→newest (tap kk−1
multiplies the current position) — GdnWeights::conv1d layout.
a_log: &'a [f32]Per-v-head decay parameter A_log [nv].
dt_bias: &'a [f32]Per-v-head dt bias [nv].
norm: &'a [f32]Gated-RMSNorm gain [dv] (plain x̂·w, norm-before-gate).
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GdnSeqCfg<'a>
impl<'a> RefUnwindSafe for GdnSeqCfg<'a>
impl<'a> Send for GdnSeqCfg<'a>
impl<'a> Sync for GdnSeqCfg<'a>
impl<'a> Unpin for GdnSeqCfg<'a>
impl<'a> UnsafeUnpin for GdnSeqCfg<'a>
impl<'a> UnwindSafe for GdnSeqCfg<'a>
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