TFLearn example code gives invalid placeholder error

Multi tool use
Multi tool use


TFLearn example code gives invalid placeholder error



The code for a Convolutional Neural Network using TFLearn at https://github.com/tflearn/tflearn/blob/master/examples/images/convnet_mnist.py does not work.



When run, it gives an error:



You must feed a value for placeholder tensor 'TargetsData/Y' with dtype float and shape [?]



I have the same problem when running other TFLearn examples. Can someone please tell me how to fix this?




1 Answer
1



The code example worked fine for me using tflearn version 0.3.2.



But, I reproduced the same error when re-running the code without restarting the kernel of a Jupyter notebook or reseting the default graph.



Insert the following lines of code:


import tensorflow as tf

tf.reset_default_graph()

## Building Convolutional Network
# ...






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

6GFdxGurPD,W bc5UeWdiOF56rni9T loSRYD3oi4nXzoG2iwk5EOJOuP QAjMPSFQSTFEdkCZJ0rfxM2CJpfefeT G
paag,bXjJo dNqmRWl

Popular posts from this blog

Boo (programming language)

Rothschild family