我只是试图在我的shell中启用急切执行,这实际上显示了一个错误。
AttributeError:模块'tensorflow'没有属性'enable_eager_execution']
我的tensorflow版本是2.0
The image shows my tensorflow version
谁能告诉我我为什么得到这个...
提前感谢
急速执行模式从版本1.8开始已添加到Tensorflow。因此,有必要进行更新。此外,它是一个相对较新的功能,具有许多故障并经常更新,因此建议使用可以为您服务的最新版本。尝试
conda update tensorflow
或带有点子
pip install --upgrade Tensorflow