Learnable parameters
Arianna is trying to learn how Convolutional Neural Networks work, so she decided to copy an online Keras example to start from somewhere.
Here is the core of the code she put together:
= keras.Sequential([
model =(28, 28, 1)),
keras.Input(shape32, kernel_size=(3, 3), activation="relu"),
layers.Conv2D(=(2, 2)),
layers.MaxPooling2D(pool_size64, kernel_size=(3, 3), activation="relu"),
layers.Conv2D(=(2, 2)),
layers.MaxPooling2D(pool_size
layers.Flatten(),0.5),
layers.Dropout(10, activation="softmax"),
layers.Dense( ])
Based on the above code fragment, what are the correct statements regarding each layer’s parameters (weights and biases)?
The first convolutional layer has a total of 21,632 parameters.
The first max pooling layer has a total of 5,408 parameters.
The second convolutional layer has a total of 18,496 parameters.
The fully-connected layer has a total of 16,010 parameters.