fn
im2col_3d_f32
void im2col_3d_f32(const float * x, float * cols, int C, int D, int H, int W, int KD, int KH, int KW, int OD, int OH, int OW, int stride_d, int stride_h, int stride_w, int pad_d, int pad_h, int pad_w, int dilation_d, int dilation_h, int dilation_w)Single-precision 3-D im2col unfold.
Unfolds a volumetric feature map of shape into a column matrix of shape . Used by conv3d (e.g., for video / medical-imaging models). Out-of-bounds positions are zero-padded.
Parameters
xconst float*Input tensor, shape row-major.
colsfloat*Output column matrix.
CintChannel count.
D, H, WintInput depth / height / width.
KD, KH, KWintKernel depth / height / width.
OD, OH, OWintOutput depth / height / width.
stride_ d, stride_ h, stride_ wintPer-axis strides.
pad_ d, pad_ h, pad_ wintPer-axis zero-padding.
dilation_ d, dilation_ h, dilation_ wintPer-axis dilation.
Notes
Memory layout is channel-first (NCDHW); batch dimension is iterated by the caller.