Skip to main content

conv

Function conv 

Source
pub fn conv(
    ring: &[VReg],
    x: VReg,
    taps: &[VReg],
    acc: VReg,
    out: VReg,
) -> Vec<Op>
Expand description

The causal convolution of a Gated-DeltaNet block’s channels through SiLU into v[out] (super::numerics::conv): the ring’s rows v[ring[j]], oldest first, against the kernel’s taps v[taps[j]], then the token’s row v[x] against the last tap, each channel’s products summed in tap order from +0, a multiply-add a tap. The kernel is held tap by tap (taps[j]_ch the channel’s tap j); v[acc] is its scratch, scalar 0 the zero.