Hi there,
In the function “convolutional_model”, I just followed the instructions to inplement Max Pooling functions with same padding. However, the layer information is like below:
Model: “functional_1”
Layer (type) Output Shape Param #
input_3 (InputLayer) [(None, 64, 64, 3)] 0
conv2d_4 (Conv2D) (None, 64, 64, 8) 392
re_lu_3 (ReLU) (None, 64, 64, 8) 0
max_pooling2d_3 (MaxPooling2 (None, 8, 8, 8) 0
conv2d_5 (Conv2D) (None, 8, 8, 16) 528
re_lu_4 (ReLU) (None, 8, 8, 16) 0
max_pooling2d_4 (MaxPooling2 (None, 2, 2, 16) 0
flatten_1 (Flatten) (None, 64) 0
dense_1 (Dense) (None, 6) 390
Total params: 1,310
Trainable params: 1,310
Non-trainable params: 0
All tests passed!
I’m wondering why the n_H and n_W shrinked after the MaxPool2D functions with same padding?