【发布时间】:2021-12-16 00:57:00
【问题描述】:
今天从 tensorflow 运行 estimator,出现了这个错误,知道如何解决吗?
File "C:\Users\ASUS Laptop\anaconda3\envs\tf_gpu\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 70, in <module>
@doc_controls.inheritable_header("""\
AttributeError: module 'tensorflow.tools.docs.doc_controls' has no attribute 'inheritable_header'
这是在我的 estimator.py 文件中:
@doc_controls.inheritable_header("""
警告:不建议将估算器用于新代码。估算器运行
v1.Session 风格的代码更难正确编写,以及
可能会出现意外行为,尤其是与 TF 2 代码结合使用时。估算器
确实属于我们的
compatibility guarantees,但会
除了安全漏洞之外,没有收到任何修复。见
migration guide 了解详情。
""")
【问题讨论】:
标签: python tensorflow machine-learning tensorflow2.0 tensorflow-estimator