pub fn reduce_window_max<B: Backend, T: Element>(
x: &Array<B, T>,
window_dimensions: &[usize],
window_strides: &[usize],
padding: impl Into<Padding>,
) -> Array<B, T>Expand description
The maximum over windows, propagating NaN (lax.reduce_window(x, -inf, lax.max, ...)).
§Examples
use ruxla_core::{Array, Native, lax};
let x = Array::<Native, f32>::from_vec(vec![1.0, 5.0, 3.0], [3]);
let y = lax::reduce_window_max(&x, &[2], &[1], lax::Padding::Same);
assert_eq!(y.to_vec(), [5.0, 5.0, 3.0]);§Panics
See reduce_window.