原文:成功解决 AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

在导入keras包时出现这个问题,是因为安装的tensorflow版本和keras版本不匹配,只需卸载keras,重新安装自己tensorflow对应的版本就OK了。可以在这个网址查看tensorflow和keras对应的版本:https: docs.floydhub.com guides environments ...

2019-12-10 11:30 0 5114 推荐指数:

查看详情

module 'tensorflow' has no attribute 'get_default_graph'

module 'tensorflow' has no attribute 'get_default_graph' 当我使用kerastensorflow做深度学习的时候,python3.6报了这个错误,这个问题源自于kerasTensorFlow的版本过高导致模块不存在或者已经更改不再兼容 ...

Fri Mar 29 04:15:00 CST 2019 0 5115
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM