tensorflow 的 Session Exception

解決 tensorflow的Session Exception問題
2018-04-21 / VIEWS: 1167
Exception ignored in: <bound method BaseSession.del of <tensorflow.python.client.session.Session object at 0x7fd3edd13e10>>

Traceback (most recent call last):
File “venv/lib/python3.5/site-packages/tensorflow/python/client/session.py”, line 712, in del
TypeError: ‘NoneType’ object is not callable

https://tw.saowen.com/a/d76dd5031ec956e362238a9fbe8396f81fc3a2d9b9a79838fd54d6a05c539e3b

from keras import backend as K
K.clear_session()

“”"
Destroys the current TF graph and creates a new one. 销毁当前TF图并创建一个新的TF图。
Useful to avoid clutter from old models / layers. 避免来自旧模型/层的混乱。
“”"

猜你喜欢

转载自blog.csdn.net/s1162276945/article/details/85564750