fchollet / keras-blog

Blog with Keras news, tutorials, and demos.
133 stars 58 forks source link

Missing variable initialization in sample code #10

Open trvrm opened 7 years ago

trvrm commented 7 years ago

In the article https://blog.keras.io/keras-as-a-simplified-interface-to-tensorflow-tutorial.html, I found I had to add

init_op = tf.global_variables_initializer()
sess.run(init_op)

before calling train_step.run on the MNIST data.

(I don't see a source file for this article in the content folder, so I can't send a pull request.)