Skip to main content

try_resize_bicubic_shared_gpu

Function try_resize_bicubic_shared_gpu 

Source
pub fn try_resize_bicubic_shared_gpu(
    input: &[f32],
    c: usize,
    h_in: usize,
    w_in: usize,
    h_out: usize,
    w_out: usize,
    out: &mut [f32],
) -> Result<VisionComputeReport, VisionError>
Expand description

Attempt bicubic NCHW resize on the auxiliary GPU circuit (iGPU when present; falls back auxiliary → primary → CPU). Returns Err(BackendUnavailable) on a GPU-less box so the caller degrades to the CPU oracle. Never panics.