I’m new to Tensorflow I’m running a Deep learning Assignment from Udacity on iPython notebook. link
And it has an error.
JavaScript
x
8
1
AttributeError Traceback (most recent call last)
2
`<ipython-input-18-3446420b5935>` in `<module>`()
3
2
4
3 with tf.Session(graph=graph) as session:
5
----> 4 tf.global_variables_initializer().run()
6
7
AttributeError: 'module' object has no attribute 'global_variables_initializer'
8
Please help! How can I fix this? Thank you.
Advertisement
Answer
In older versions, it was called tf.initialize_all_variables
.