0
点赞
收藏
分享

微信扫一扫

keras使用过程中的问题总结


1.1问题报错:AttributeError: module ‘tensorflow.python.keras.backend’ has no attribute ‘get_graph’

AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'

1.2解决办法

造成这种问题的原因是你安装的tensorflow版本和keras版本不匹配
​​​ https://docs.floydhub.com/guides/environments/​​keras使用过程中的问题总结_tensorflow

# pip install -i https://mirrors.aliyun.com/pypi/simple/  keras==1.9.0
# pip install -i https://mirrors.aliyun.com/pypi/simple/ keras==2.2.0


举报

相关推荐

0 条评论