Kernel for computing dense CNN deconvolution with row-based processing and matrix-matrix multiplication.
- Kernel requires coefficients, \( H \) and feature map, \( X \) to be available in memory
- 8- and 16-bit datatypes supported
- Supported datatypes for feature map are 8- and 16-bit signed and unsigned
- Supported datatypes for coefficients are 8- and 16-bit signed
- Kernel leverages code from convolve rows kernel
- \( Y = H \times X \), which translates to \( C = A \times B \) in relation to MMA's hardware architecture
- Feature map is expected to be padded appropriately with zeroes
- Feature map will be padded with a constant matrix by the kernel on-the-fly, whose scalar value is represented by MMALIB_CNN_deconvolve_row_ixX_ixX_oxX_InitArgs::bias
- It is assumed that filter coefficient tensor is padded with bias appropriately
- Kernel supports only \( 4 \times 4 \) stride by \( 2 \), \( 2 \times 2 \) stride by \( 2 \), and \( 8 \times 8 \) stride by \( 2 \) deconvolutions
- Filter coefficient tensor is assumed to be pre-processed
- Pre-processing functions MMALIB_CNN_deconvolve_row_4x4Stride2PreProcessParameters MMALIB_CNN_deconvolve_row_2x2Stride2PreProcessParameters, and MMALIB_CNN_deconvolve_row_8x8Stride2PreProcessParameters can be used to pre-process the filter coefficients for \( 4 \times 4 \) stride by \( 2 \), \( 2 \times 2 \) stride by \( 2 \), and \( 8 \times 8 \) stride by \( 2 \) deconvolutions respectively
- Kernel performs \( 4 \times 4 \) stride by \( 2 \) and \( 2 \times 2 \) stride by \( 2 \) deconvolutions via four, \( 2 \times 2 \) stride by \( 1 \) and \( 1 \times 1 \) stride by \( 1 \) convolutions respectively
- Process results in interleaved rows and columns of actual output
- Kernel outputs partial deconvolution output
- Columns are interleaved by MMALIB, while interleaving of rows maybe performed in background by DRU
- Zero padding of current output as input to subsequent layer may also be performed in background of compute via DRU
Pre-processed coefficient buffer
Output feature map buffer