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/
在这里插入图片描述

# 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

猜你喜欢

转载自blog.csdn.net/liuyunshengsir/article/details/106296196