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

报错信息如下

报错原因

keras与tensorflow版本不兼容导致的

解决办法

卸载掉keras,然后安装与之tensorflow版本对应的keras

发布了1185 篇原创文章 · 获赞 310 · 访问量 117万+

猜你喜欢

转载自blog.csdn.net/qq_37591637/article/details/103933800
今日推荐