import tensorflow as tf
改为:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
tensorflow版本问题 AttributeError: module ‘tensorflow‘ has no attribute ‘global_variables_initializer‘
最新推荐文章于 2022-11-02 15:49:39 发布
import tensorflow as tf
改为:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()