import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()或
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Tensorflow 2.0使用1.0 代码
最新推荐文章于 2023-06-12 21:18:17 发布
import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()或
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()