tensorflow2.0用1.0的代码

 

import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()或
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

替换import tensorflow as tf
posted @ 2020-03-26 11:36  张利杰j  阅读(2978)  评论(0编辑  收藏  举报