fn
col2im_1d_f32
void col2im_1d_f32(const float * cols, float * dx, int C, int L, int KL, int OL, int stride_l, int pad_l, int dilation_l)Single-precision 1-D col2im fold (gradient transform).
Inverse of im2col_1d_f32: scatter-adds each column of cols back
into the corresponding positions of . Overlapping receptive fields
(stride < kernel) accumulate by sum — this is the mathematically correct
adjoint that the conv1d backward needs.
Math
Parameters
colsconst float*Column matrix, shape .
dxfloat*Output gradient tensor, shape ; must be zeroed by the caller before this call.
C, L, KL, OLintChannel count, input length, kernel length, output length.
stride_l, pad_l, dilation_lintMatch the convolution forward.