keras-blog icon indicating copy to clipboard operation
keras-blog copied to clipboard

Missing variable initialization in sample code

Open trvrm opened this issue 7 years ago • 0 comments

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.)

trvrm avatar Mar 19 '17 21:03 trvrm