24 int32_t padding_top, int32_t padding_bottom, int32_t stride_width,
25 int32_t stride_height, int32_t filter_width, int32_t filter_height,
36 computeOutSize(width, filter_width, stride_width, padding_left, padding_right);
38 computeOutSize(height, filter_height, stride_height, padding_top, padding_bottom);
40 output->type = input.type;
41 output->dimensions = {batches, outHeight, outWidth, channels_out};
uint32_t computeOutSize(uint32_t imageSize, uint32_t filterSize, uint32_t stride, uint32_t paddingHead, uint32_t paddingTail)
bool genericPoolingPrepare(const Shape &input, int32_t padding_left, int32_t padding_right, int32_t padding_top, int32_t padding_bottom, int32_t stride_width, int32_t stride_height, int32_t filter_width, int32_t filter_height, Shape *output)