Realm

oa::ml::matrix::adaptive_max_pool_3d

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

FnRust public API

Function Documentation

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