Skip to main content

center_crop

Function center_crop 

Source
pub fn center_crop(x: &[f32], dims: &[usize]) -> (Vec<f32>, Vec<usize>)
Expand description

Centered crop with every axis of length ≥ 16 halved (1D: the middle eighth), and its shape.