Realm

oa::ml::matrix::avg_pool_3d

Average-pool an NCDHW Matrix with a cubic kernel. Errors Returns an error unless input is a nonempty rank-five F32 Matrix, kernel_size and stride are nonzero, the kernel fits the padded input, or runtime recording fails.

FnRust public API

Function Documentation

pub fn avg_pool_3d( input: &Matrix, kernel_size: usize, stride: usize, padding: usize ) -> Result<Matrix>
Average-pool an NCDHW Matrix with a cubic kernel. Errors Returns an error unless input is a nonempty rank-five F32 Matrix, kernel_size and stride are nonzero, the kernel fits the padded input, or runtime recording fails.