How can I clear a model created with Keras and Tensorflow(as backend)?

前端 未结 1 1358
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 17:34

I have a problem when training a neural net with Keras in Jupyter Notebook. I created a sequential model with several hidden layers. After training the model and saving the

相关标签:
1条回答
  • 2021-01-07 18:09

    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.

    0 讨论(0)
提交回复
热议问题