Keras assigns incrementing ID numbers to layers of the same type, e.g. max_pooling1d_7, max_pooling1d_8, max_pooling1d_9,etc. Each ite
max_pooling1d_7
max_pooling1d_8
max_pooling1d_9
Add
tf.keras.backend.clear_session()
as in https://www.tensorflow.org/api_docs/python/tf/keras/backend/clear_session