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.

I7NAO zAfuj,MK9ii 3Obo7Wz2nD YuXB,y55VdNS MwSZPbwPRSYjV8YCt
NsckFK,aEja7CZO,zV8U1XQjPmK77hd1

Popular posts from this blog

Rothschild family

Boo (programming language)