TensorFlow 'module' object has no attribute 'global_variables_initializer'

前端 未结 4 593
日久生厌
日久生厌 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:12

    Seems like you're using tensorflow 0.11 or older versions. If you see this git-commit, they replaced initialize_all_variables with global_variables_initializer.

    So, either you can use initialize_all_variables or update to a newer version i.e. (0.12) or later.

提交回复
热议问题