Reputation: 130
Not Sequential API, but for Keras Functional API, how do I remove the '[]' of my output shape? For example, I don't want [(None,32)] instead, i want (None,32):
i = Input(shape=(32,))
x = Dense(16, activation='softmax')(i)
model = Model(x, y)
model.summary()
Layer (type) Output Shape Param #
=================================================================
input_20 (InputLayer) [(None, 32)] 0
dense_47 (Dense) (None, 16) 528
=================================================================
Total params: 528
Trainable params: 528
Non-trainable params: 0
Upvotes: 1
Views: 148