What is the primary function of the flattening layer in a convolutional neural network architecture?
a. Reducing the spatial dimensions of feature maps
b. Converting the feature maps into a 1D vector
c. Applying an activation function to the features
d. Introducing regularization to prevent overfitting