Page 1 of 1

Write a C++ program to create maximum and average pooling: The submatrix for the MaxPooling and Average Pooling are 4x4

Posted: Sat May 14, 2022 3:43 pm
by answerhappygod
Write a C++ program to create maximum and average pooling:
Write A C Program To Create Maximum And Average Pooling The Submatrix For The Maxpooling And Average Pooling Are 4x4 1
Write A C Program To Create Maximum And Average Pooling The Submatrix For The Maxpooling And Average Pooling Are 4x4 1 (35.57 KiB) Viewed 78 times
The submatrix for the MaxPooling and Average Pooling are 4x4
(2x2 in the image posted). The initial matrix is 128x128, but the
code should preferably work with dynamic square matrix, so with 4*x
rows and 4*x columns (4x4, 8x8, 16x16,...)
Example for MaxPool:
...
return MaxPool_Matrix
}
It gets a float** -> matrix a as input, and number of
rows/columns the initial matrix is made of. It should return a
Maxpooled matrix of (rows/4)*(columns/4) dimension, so a 2x2 matrix
from a 8x8 input matrix
158 15 942 11 586 8 7 3 17 23 7 3 8 17 Max pooling 10 5 Average pooling 5 CO 8