Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow AttributeError: 'NoneType' object has no attribute 'TF_DeleteStatus'

Tags:

Tensorflow is giving me this unresolved error:

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' 

The error has been discussed here. The problem is it is not showing up consistently. However, it is showing up in my terminal frequently. Has anybody managed to get around it.Thanks.

like image 948
motiur Avatar asked Nov 12 '16 07:11

motiur


1 Answers

You can run import gc; gc.collect() in the end of your code.

like image 93
Kui-Ming Chen Avatar answered Sep 20 '22 17:09

Kui-Ming Chen