前面加上:tf.compat.v1.disable_eager_execution()
tensorflow2兼容tensorflow1,运行报错,RuntimeError:Session处于无效状态
最新推荐文章于 2023-03-09 13:14:17 发布
前面加上:tf.compat.v1.disable_eager_execution()