TensorFlow 'module' object has no attribute 'global_variables_initializer'

前端 未结 4 583
日久生厌
日久生厌 2021-02-05 01:51

I\'m new to Tensorflow I\'m running a Deep learning Assignment from Udacity on iPython notebook. link

And it has an error.

AttributeError                         


        
4条回答
  •  别跟我提以往
    2021-02-05 02:02

    In Tensorflow 1.11 You can use both initialize_all_variables().run() or tf.global_variables_initializer()

      #tf.global_variables_initializer().run()
      tf.initialize_all_variables().run()
    

    both of then works fine on

提交回复
热议问题