This is the bridge between Computer Vision and standard Classification.
# Input: A 2D Feature Map (e.g., 2x2)
feature_map = [
[10, 0],
[5, 2]
]
# Flattening: Unrolling into a 1D Vector
vector = feature_map.flatten()
print(vector)
# Output: [10, 0, 5, 2]
# Now we feed this to a Dense Layer!
output = dense_layer(vector)