import tensorflow.compat.v1 as tf #使用1版本
tf.disable_v2_behavior() #禁用2版本
在TensorFlow2 上运行TensorFlow1 的代码
最新推荐文章于 2024-04-21 16:53:20 发布
import tensorflow.compat.v1 as tf #使用1版本
tf.disable_v2_behavior() #禁用2版本