How to change input shape in Sequential model in Keras
I have a sequential model that I built in Keras. I try to figure out how to change the shape of the input. In the following example model = Sequential() model.add(Dense(32, input_shape=(500,))) model.add(Dense(10, activation='softmax')) model.compile(optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy']) let's say that I want to build a new model with different input shape, conceptual this should looks like this: model1 = model model1.layers[0] = Dense(32, input_shape=(250,)) is there a way to modify the model input shape? Think about what changing the input shape in that