pub fn maxpool1d_forward<T: Triton, D: Num, const KL: i32, const STRIDE: i32, const BLOCK_OL: i32>(
input_ptr: T::Pointer<D>,
output_ptr: T::Pointer<D>,
_B: i32,
C: i32,
L: i32,
OL: i32,
)where
T::I32Tensor: Tensor<i32, 1> + Comparison<i32, BoolTensor = T::BoolTensor>,
T::Pointer<D>: AddOffsets<i32, 1, T::I32Tensor, Output = T::Tensor<T::Pointer<D>>>,Expand description
1-D max-pooling forward pass.
Grid: pid = (b * C + c) * num_ol_tiles + ol_tile
Initialises the accumulator to -inf and reduces over KL positions.
Constraints: no padding; OL = (L - KL) / STRIDE + 1.