Skip to main content

max_pool2d_dispatch

Function max_pool2d_dispatch 

Source
pub fn max_pool2d_dispatch(
    input: &[f32],
    c: usize,
    h: usize,
    w: usize,
    kh: usize,
    kw: usize,
    stride_h: usize,
    stride_w: usize,
    out: &mut [f32],
    prefer_gpu: bool,
) -> Result<(VisionComputeReport, usize, usize), VisionError>
Expand description

Max-pool dispatch wrapping the CPU oracle.