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

解决办法:使用tf.compat.v1.get_default_graph获取图而不是tf.get_default_graph。

posted @ 2019-10-22 11:29  旅人_Eric  阅读(1029)  评论(0编辑  收藏  举报