在 Keras 中训练模型时,我在某个时期遇到异常:
Exception ignored in: <bound method BaseSession.__del__ of <tensorflow.python.client.session.Session object at 0x7f036d74b7f0>>
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/client/session.py", line 686, in __del__
TypeError: 'NoneType' object is not callable
这种行为的原因可能是什么?
最佳答案
这可能是Cache文件导致的,您可以尝试删除pycache文件夹。这对我有用。 我使用的是 Tensorflow 版本。
关于python - Keras 奇怪的崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52915150/