Realm

oa::ml::matrix::max_unpool_2d

Scatter NCHW pooled values back into an image of output_height × output_width using the recorded argmax indices, the adjoint scatter of max_pool_2d. Errors Returns an error unless input and indices are nonempty rank-four same-shape NCHW Matrices on one runtime (indices U32), the declared output geometry admits the kernel/stride/padding window grid, or runtime recording fails.

FnRust public API

Function Documentation

pub fn max_unpool_2d( input: &Matrix, indices: &Matrix, kernel_size: usize, stride: usize, padding: usize, output_height: usize, output_width: usize ) -> Result<Matrix>
Scatter NCHW pooled values back into an image of output_height × output_width using the recorded argmax indices, the adjoint scatter of max_pool_2d. Errors Returns an error unless input and indices are nonempty rank-four same-shape NCHW Matrices on one runtime (indices U32), the declared output geometry admits the kernel/stride/padding window grid, or runtime recording fails.