Solved by Horst_G in post #7 
              
              
                What worked for me: 
model = tf.keras.models.load_model("model.h5")

conf = model.get_config()
model_config = model.get_config()
input_layer_name = model_config['layers'][0]['name']
model_config['layers'][0] = {
                      'name': 'new_input',
                      'class_name': 'InputLay…