今天从张量流运行估计器并出现了这个错误,知道如何解决它吗?
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'
Run Code Online (Sandbox Code Playgroud)
这是在我的 estimator.py 文件中: @doc_controls.inheritable_header("""
警告:不建议在新代码中使用估算器。估算器运行
v1.Session更难以正确编写的风格代码,并且可能会出现意外行为,尤其是与 TF 结合使用时2 代码。估算器确实属于我们的
兼容性保证范围,但除了安全漏洞之外不会收到任何修复。
有关详细信息,请参阅迁移指南。""")
python machine-learning tensorflow tensorflow-estimator tensorflow2.0