Skip to main content

predict_logits

Function predict_logits 

Source
fn predict_logits(
    data: &[f32],
    dims: [usize; 3],
    model: &OnnxModel,
    patch: [usize; 3],
    params: &HdBetParams,
    progress: impl FnMut(usize, usize),
) -> Result<Vec<f32>, OnnxError>
Expand description

Gaussian-weighted sliding-window logits (2 channels, C-order (z, y, x), shape dims).