安装了Tesorflow的高版本,如果想联系V1版本的操作方法,可以在代码的开头添加如下内容:
import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()
tf.compat.v1.disable_v2_behavior()
安装了Tesorflow的高版本,如果想联系V1版本的操作方法,可以在代码的开头添加如下内容:
import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()
tf.compat.v1.disable_v2_behavior()