Realm

oa::ml::matrix::max_unpool_1d

Scatter NCL pooled values back into an image of output_length using the recorded argmax indices, the adjoint scatter of max_pool_1d. Positions no pooled element selected produce zero. Overlapping windows resolve to the highest pooled index. Errors Returns an error unless input and indices are nonempty rank-three same-shape NCL Matrices on one runtime (indices U32), output_length admits the declared kernel/stride/padding geometry, or runtime recording fails.

FnRust public API

Function Documentation

pub fn max_unpool_1d( input: &Matrix, indices: &Matrix, kernel_size: usize, stride: usize, padding: usize, output_length: usize ) -> Result<Matrix>
Scatter NCL pooled values back into an image of output_length using the recorded argmax indices, the adjoint scatter of max_pool_1d. Positions no pooled element selected produce zero. Overlapping windows resolve to the highest pooled index. Errors Returns an error unless input and indices are nonempty rank-three same-shape NCL Matrices on one runtime (indices U32), output_length admits the declared kernel/stride/padding geometry, or runtime recording fails.