tensorflow-mnist-tutorial icon indicating copy to clipboard operation
tensorflow-mnist-tutorial copied to clipboard

Bugs about 'ValueError: Variable W4 already exists, disallowed' when drawing numbers repeatedly

Open Wuyou98 opened this issue 6 years ago • 0 comments

I got this error about tf when I tried to redraw some numbers, because the graph already exists. So I added tf.reset_default_graph at the beginning of the prediction. It works! So I suggest maybe your project should add this line of code.

Wuyou98 avatar Jun 06 '19 07:06 Wuyou98