导包时加入以下代码: import tensorflow as tf tf.compat.v1.disable_eager_execution() 相关文章: 2022-12-23 2021-08-06 2021-12-24 2022-12-23 2018-07-05 2021-05-08 2022-12-23 2021-09-29