fn
avg_pool1d_backward_f32
void avg_pool1d_backward_f32(const float * g, float * dx, int B, int C, int L, int KL, int OL, int stride_l, int pad_l)Single-precision 1-D average-pool backward — broadcasts each upstream gradient uniformly back into its source window with the fixed 1/KL weight.
The caller must zero dx because overlapping windows accumulate into the
same input slots.
Parameters
gconst float*Upstream gradient of shape
(B, C, OL).dxfloat*Output gradient of shape
(B, C, L); accumulated.B, C, L, KL, OL, stride_l, pad_lintLayout and window parameters matching the forward call.