Realm

oa::ml::matrix::adaptive_max_pool_2d

Adaptively max-pool an NCHW Matrix to exactly output_height × output_width, emitting argmax indices. Errors Returns an error unless input is a nonempty rank-four F32 Matrix and both output extents are nonzero, or runtime recording fails.

FnRust public API

Function Documentation

pub fn adaptive_max_pool_2d( input: &Matrix, output_height: usize, output_width: usize ) -> Result<AdaptiveMaxPool2dResult>
Adaptively max-pool an NCHW Matrix to exactly output_height × output_width, emitting argmax indices. Errors Returns an error unless input is a nonempty rank-four F32 Matrix and both output extents are nonzero, or runtime recording fails.