oa::ml::matrix::upsample_2d

Upsample an FP32 NCHW Matrix by a positive integer scale factor. Errors Returns an error unless the input is nonempty rank-four F32, the scale factor is positive, all output geometry is representable, or runtime recording fails.

FnRust public API

Function Documentation

pub fn upsample_2d( input: &Matrix, scale_factor: usize, mode: UpsampleMode ) -> Result<Matrix>
Upsample an FP32 NCHW Matrix by a positive integer scale factor. Errors Returns an error unless the input is nonempty rank-four F32, the scale factor is positive, all output geometry is representable, or runtime recording fails.