23 #ifndef MMALIB_CNN_PIXELSHUFFLE_ROW_IXX_IXX_OXX_H_
24 #define MMALIB_CNN_PIXELSHUFFLE_ROW_IXX_IXX_OXX_H_
26 #include "../../common/MMALIB_types.h"
383 int32_t subMChannels);
405 int32_t subMChannels);
442 uint64_t * archCycles,
443 uint64_t * estCycles);
MMALIB_STATUS MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_init(MMALIB_kernelHandle handle, const MMALIB_bufParams2D_t *src0_addr, const MMALIB_bufParams2D_t *src1_addr, const MMALIB_bufParams2D_t *dst_addr, const MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_InitArgs *pKerInitArgs)
This function call is required to initialize the handle. In this function most of the one time operat...
MMALIB_CNN_PIXELSHUFFLE_ROW_IXX_IXX_OXX_STATUS_NAME
Enum to define the error codes.
@ MMALIB_CNN_PIXELSHUFFLE_ROW_IXX_IXX_OXX_ERR_MAX
@ MMALIB_CNN_PIXELSHUFFLE_ROW_IXX_IXX_OXX_ERR_SMALL_K
int32_t MMALIB_CNN_generateFillSeamPredicateRegistersPixelShuffle(MMALIB_kernelHandle handle, int32_t inputWidth, int32_t pad, int32_t inputHeight, int32_t mmaWidth, int32_t MChannels, int32_t subMChannels)
This function generates the predicate registers once per layer Predicate buffers are create to identi...
int32_t MMALIB_CNN_seamPredicateRegistersSizeDefaultPixelShuffle()
This function generates the predicate registers once per layer.
MMALIB_STATUS MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_exec_checkParams(MMALIB_kernelHandle handle, const void *src0, const void *src1, void *dst, const MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_ExecInArgs *pKerInArgs)
This function checks the parameters and should be called before kernel executuon. It can be called on...
MMALIB_STATUS MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_init_checkParams(MMALIB_kernelHandle handle, const MMALIB_bufParams2D_t *src0_addr, const MMALIB_bufParams2D_t *src1_addr, const MMALIB_bufParams2D_t *dst_addr, const MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_InitArgs *pKerInitArgs)
This function call is required to initialize the handle. In this function most of the one time operat...
int32_t MMALIB_CNN_seamPredicateRegistersSizePixelShuffle(int32_t inputWidth, int32_t pad, int32_t inputHeight, int32_t mmaWidth, int32_t MChannels, int32_t subMChannels)
This function provides total bytes needed for seam insertion buffer.
int32_t MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_getHandleSize(MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_InitArgs *pKerInitArgs)
This is a query function to calculate the size of internal handle.
MMALIB_STATUS MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_exec(MMALIB_kernelHandle handle, const void *src0, const void *src1, void *dst, const MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_ExecInArgs *pKerInArgs, MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_ExecOutArgs *pKerOutArgs)
This function is the main compute function, and performs the convolution primitive (conv + ReLU) for ...
void MMA_CNNLIB_pixelShuffle_rowBiasReLUCompute_ixX_ixX_oxX_perfEst(const MMALIB_bufParams2D_t *src0_addr, const MMALIB_bufParams2D_t *src1_addr, const MMALIB_bufParams2D_t *dst_addr, MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_InitArgs *pKerInitArgs, const MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_ExecInArgs *pKerInArgs, MMALIB_CNN_pixelShuffle_row_ixX_ixX_oxX_ExecOutArgs *pKerOutArgs, int32_t iterN, uint64_t *archCycles, uint64_t *estCycles)
This function generates the performance of MMALIB kernels.
MMALIB_STATUS_NAME
The enumeration of all status codes.
void * MMALIB_kernelHandle
Handle type for MMALIB operations.
Structure containing the parameters for input to the execute phase of CNN convolution computation.
int32_t validRowsIn
Valid input rows of input feature maps for one call of processing of the kernel for strided convoluti...
int32_t validColsPerRowIn
Valid columns in a row of input feature maps for one call of processing of the kernel for strided con...
int32_t subMChannels
Number of output channels per kernel call after convolution and before pixel shuffle; in execute phas...
int32_t validColsIn
Valid columns in a row of input feature maps for one call of processing of the kernel for non strided...
int32_t pad
Pad of each row of input feature map, specify pad only on one side in execute phase....
Structure containing the parameters for output from the execute phase of CNN convolution computation.
int32_t validColsPerRowOut
Valid columns in a row of output feature maps for one call of processing of the kernel for strided co...
int32_t validColsOut
Valid columns out in a row of output feature maps for one call of processing of the kernel for non st...
int32_t validRowsOut
Valid output rows of output feature maps after convolution for one call of processing of the kernel f...
Structure containing the parameters initialization of CNN convolution computation.
int32_t dilationX
dilation of coefficients of columns
int8_t funcStyle
Variant of the function refer to MMALIB_FUNCTION_STYLE
int32_t bias
bias value in B matrix same as data type of B matrix
int32_t maxHeight
Height of the input feature map in units of data type
int32_t validColsPerRowIn
Valid columns in a row of input feature maps for one call of processing of the kernel for strided con...
uint8_t mode
mode for input feature map in Circular or Linear mode in B matrix
int32_t shift
Shift parameter for output precision
uint8_t activationType
activation RELU, SAT or none for output
int32_t inWidth
Width of each row of input feature map in units of data type
int32_t inputPitchPerRow
Valid pitch for each input rows of input feature maps for strided convolution. This is in units of by...
int32_t pad
Pad of each row of input feature map, specify pad only on one side and for strided flow the Pad is on...
int32_t dilationY
dilation of coefficients of rows
int32_t subMChannels
Number of output channels per kernel call after convolution and before pixel shuffle operation.
int32_t inChOffset
offset of the input feature maps in B matrix. This is power of 2 for circular buffer and atleast 64 b...
int32_t outputPitchPerRow
Valid output pitch for each output rows of output feature maps for strided convolution....
int32_t validRowsIn
Valid input rows of input feature maps for one call of processing of the kernel for strided convoluti...
int32_t strideX
stride of columns
int32_t strideY
stride of rows
int32_t No
Number of output feature maps
int32_t upscaleFactor
upscale factor for pixel shuffle
int32_t Fc
coefficient columns (width)
int32_t Fr
coefficient rows (height)
int32_t validColsIn
Valid columns of input feature maps in B matrix for one call of processing of the kernel for non stri...
A structure for a 2 dimensional buffer descriptor.