我在python3.6下使用tensorflow 1.9.0。导入tensorflow之后,我无法使用importlib重新加载它-示例:
import tensorflow as tf
import importlib
importlib.reload(tf)它最终崩溃的原因是:
~/anaconda/envs/tf1pt9/lib/python3.6/site-packages/tensorflow/__init__.py in <module>()
592 # resolution to succeed.
593 # pylint: disable=undefined-variable
--> 594 del python
595 del core
596 # pylint: enable=undefined-variable
NameError: name 'python' is not defined这不奇怪吗?我想我不需要再装子弹了。
发布于 2018-08-24 21:39:27
不支持重新加载tensorflow。在一篇关于Github的文章中:
关闭,因为我们没有计划支持重新加载在短期内。
https://stackoverflow.com/questions/52012012
复制相似问题