Skip to main content

try_resize_nearest_shared_gpu

Function try_resize_nearest_shared_gpu 

Source
pub fn try_resize_nearest_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 GPU resize on the process-wide shared device.

Returns Ok(report) with device = SharedGpu on success. On any failure returns Err so the caller falls back to the CPU oracle.