keras.backend.clear_session() should clear the previous model. From https://keras.io/backend/:
Destroys the current TF graph and creates a new one.
Useful to avoid clutter from old models / layers.
keras.backend.clear_session() should clear the previous model. From https://keras.io/backend/:
Destroys the current TF graph and creates a new one.
Useful to avoid clutter from old models / layers.