pub fn patch_merge(encoder_out: &[f32], cfg: &VisionConfig) -> Vec<f32>Expand description
tpool_patch_merger for the single-frame (t=1) case: groups
spatially-adjacent merge_kh x merge_kw patches (row-major (h, w))
into one merged patch each, without the temporal mean (a no-op at
t=1). Returns [num_merged, merge_kh*merge_kw*hidden_dim]
flattened – already contiguous per merged patch, ready for the
projector.