SyntaxFix
Write A Post
Hire A Developer
Questions
You need to call tf.global_variables_initializer() on you session, like
tf.global_variables_initializer()
init = tf.global_variables_initializer() sess.run(init)
Full example is available in this great tutorial https://www.tensorflow.org/get_started/mnist/mechanics