gpt4 book ai didi

python - TensorFlow AttributeError : 'NoneType' object has no attribute 'TF_DeleteStatus'

转载 作者:IT老高 更新时间:2023-10-28 20:47:08 25 4
gpt4 key购买 nike

Tensorflow 给了我这个 Unresolved 错误:

Exception ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x7f68d14b6668>>
Traceback (most recent call last):
File "/opt/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 532, in __del__
AttributeError: 'NoneType' object has no attribute 'TF_DeleteStatus'

错误已讨论here .问题是它没有始终如一地出现。但是,它经常出现在我的终端中。有没有人设法绕过它。谢谢。

最佳答案

你可以运行 import gc; gc.collect() 在代码末尾。

关于python - TensorFlow AttributeError : 'NoneType' object has no attribute 'TF_DeleteStatus' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40560795/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com