Traceback (most recent call last):
File "linear_regression_eager_api.py", line 15, in <module>
tf.enable_eager_execution()
AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution'
在tensorflow模型訓練的遇到這個報錯
原因:tensorflow版本太老了,沒有'enable_eager_execution'這個屬性方法
解決:pip install --upgrade tensorflow更新tensorflow
