module ‘tensorflow‘ has no attribute ‘get_default_graph‘解决方法
module ‘tensorflow’ has no attribute 'get_default_graph’解决方法在运行Python项目时,Tensorflow2.x版本经常会报一些版本问题是错误。很多CSDN上的帖子都是教我们降级解决,但是好像会提醒已经没有1.13以下的版本了。其实有时候报错原因是因为tensorflow与kreas版本不匹配导致,我们可以根据下面表里的版本进行kreas的升级或降级。比如我的是tensorflow 2.0.0版本 keras为2.0.9版本,出现如题报错。解
原创
2021-07-08 10:47:17 ·
3471 阅读 ·
2 评论