In a model with the following partial architecture:

where we have let's say Dense1 and Dense2 layers (Fully connected).
I need to get the weights of my already trained model for Dense2, but the shape I get for this layer is (128,2048) which confuses me as the theoretical explanation of this layer is that it should provide a a single value for my array (here: 2048). I print the weights of Dense2 as:
weights = model.layers[layer_idx].get_weights()
Shouldn't I see the shape of the architecture? (None, 2048)
units=2048it will output 2048 numbers. - Aechlys