原文:AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

解决办法:使用tf.compat.v .get default graph获取图而不是tf.get default graph。 ...

2019-10-22 11:29 0 794 推荐指数:

查看详情

module 'tensorflow' has no attribute 'get_default_graph'

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

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