Tensorflow报错:TypeError: 'NoneType' object is not callable

程序运行有结果,但是最后爆出错误。

错误如下;

Exception ignored in: >
Traceback (most recent call last):
  File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\client\session.py", line 712, in __del__
  File "C:\Users\Administrator\Anaconda3\lib\site-packages\tensorflow\python\framework\c_api_util.py", line 31, in __init__
TypeError: 'NoneType' object is not callable

Tensorflow报错:TypeError: 'NoneType' object is not callable_第1张图片

解决方法:删除缓存文件,再次运行没有错误

Tensorflow报错:TypeError: 'NoneType' object is not callable_第2张图片

你可能感兴趣的:(Tensorflow,python)