fn infer<T: Posterior>(
model: &OnnxModel,
pre: &Preprocessed,
n_labels: usize,
window: Option<(usize, usize)>,
flip: Option<&[usize]>,
params: &SynthSegParams,
progress: &mut impl FnMut(usize, usize),
) -> Result<SynthSegResult, OnnxError>Expand description
Network, flip averaging and post-processing, with the posteriors stored as T.