安装了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()
3万+
1574
3028
285
1万+
3244

被折叠的 条评论
为什么被折叠?