The script shows a wierd bug using keras with tensorflow.
When you use the tf.while_loop
function
- if you include the
Dropout
layer or set the total number of epochs to greater than 10, then the program hangs and never returns. - Otherwise, it works fine.
I've updated to the latest version of keras and tensorflow. This bug persists. It seems to be a bug with keras. Since I could not reproduce this with pure tensorflow code.