pub fn reduce_window<B: Backend, T: Element>(
x: &Array<B, T>,
op: ReduceOp,
window_dimensions: &[usize],
window_strides: &[usize],
padding: impl Into<Padding>,
base_dilation: Option<&[usize]>,
window_dilation: Option<&[usize]>,
) -> Array<B, T>Expand description
lax.reduce_window with the monoid op (add from 0, max from the
lowest value, or min from the highest), with base and window
dilations (None: 1). String padding is resolved for the operand’s
shape and the dilated window, as JAX does.
§Panics
Panics if the window does not fit the operand, if the padding is negative, or if booleans are summed.