Attempting to reset tensorflow graph when using keras, failing

前端 未结 1 885
南旧
南旧 2021-01-11 15:20

I\'m spinning up a Python 3 API w/gunicorn that uses keras to calculate vectors for an image, pretty straightforward.

How can I reset the data stored in memory for e

相关标签:
1条回答
  • 2021-01-11 15:40
    from keras import backend as K
    K.clear_session()
    
    0 讨论(0)
提交回复
热议问题