0%

AttributeError: module 'tensorflow' has no attribute 'compat'

问题描述

在运行代码时,出现如下错误:

1
2
**balabala**
AttributeError: module 'tensorflow' has no attribute 'compat'

解决方法

来自tensorflow的github issue

ISSUE FIXED for me

Indeed the command “conda install tensorflow-gpu==2.1.0” installed version 2.2.0 of tensorflow-estimator.
After “conda install tensorflow-estimator==2.1.0” everything works fine

欢迎关注我的其它发布渠道