解决TF2.X出现AttributeError: module ‘tensorflow‘ has no attribute ‘get_default_graph‘错误

        将tf.get_default_graph()

改为tf.compat.v1.get_default_graph()即可

猜你喜欢

转载自blog.csdn.net/athrunsunny/article/details/120742000
今日推荐