gdn_conv_chain_f32_batched

Function gdn_conv_chain_f32_batched 

Source
pub fn gdn_conv_chain_f32_batched(
    gpu: &dyn GpuBackend,
    kernel: KernelHandle,
    conv_state: DevicePtr,
    new_input: DevicePtr,
    weight: &DenseWeight,
    output: DevicePtr,
    conv_inter: DevicePtr,
    batch: u32,
    num_tokens: u32,
    dims: [u32; 4],
    l2_eps: f32,
    row_strides: [u32; 2],
    inter_strides: [u64; 2],
    stream: u64,
) -> Result<()>
Expand description

2026-10-01: super::gdn_conv_chain_f32 for batch sequences on consecutive conv slots (dim * d_conv floats apart): row b * num_tokens + t reads new_input + row * input_stride and writes output + row * output_stride; the window after position t < num_tokens - 1 goes to conv_inter + b * inter_strides[1] + t * inter_strides[0] floats.