打开tensorboard时出现错误:module 'tensorflow' has no attribute 'estimator'
一、错误现象
![请添加图片描述](https://img-blog.csdnimg.cn/17910e4e0e9f4a55a224e3c74befd90c.png)
二、解决方法
(1)打开python的安装目录,找到文件:beholder.py
D:\Python36\Lib\site-packages\tensorboard\plugins\beholder.py
(2)类class BeholderHook(tf.estimator.SessionRunHook):的括号中内容删除
三、错误原因
TF2取消了SESSION,不可以用。
![请添加图片描述](https://img-blog.csdnimg.cn/3ca8d8a98f4e469a9591fe4319dea463.png)