I have a Keras model (TensorFlow 2.0) saved in hdf5 format (.h5). I want to load this existing model and change its input shape, so it only accepts a fixed batch size.
The input batch size can be fixed with the layer tensorflow.keras.Input(shape=..., batch_size=...)
. However, I do not want to create a new model from scratch (I want to use the already existing model). Is there a way to do this using the Python TF2 api without creating the model from scratch and without adding new layers?