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