Attempting to reset tensorflow graph when using keras, failing

前端 未结 1 882
南旧
南旧 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)
提交回复
热议问题