Skip to main content

batch_input

Function batch_input 

Source
pub fn batch_input(w: usize, chunk: &[usize], lines: &[PrepLine]) -> Vec<f32>
Expand description

Pack one width-batch into the model’s (N, 3, H, W) input buffer.