AttributeError: module ‘tensorflow.python.keras.backend‘ has no attribute ‘get_graph‘的解决方案
在使用keras搭建神经网络时,导入相关组件,常常会报错:AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph' 遇到这样的问题,绝大多数时候是因为tensorflow和keras版本存在冲突,一种解决方案是导入keras的时候,使用tensorflow.keras,但是这样的办法不一定能每一次都成功,为了一次性解决问题,可以通过下面的网站查看不同tensorflow兼容的k...
原创
2021-01-17 22:49:24 ·
919 阅读 ·
1 评论