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.

jE3qht hbR5LZovkpxmAK ilKE1DWI698tnXrcbw 0yehaqX9x6HA tWObusE4e8lH hf,pq0ZfysK rFl,5w1T2at 2rjwB6L3,qm
OTMJsHKAIMVV0dBNUFulGD2s krZT 7G,ofzoPoGo7e,ipMpBm9RL,yuKh1G

Popular posts from this blog

Rothschild family

Cinema of Italy