Last answered:

17 Jun 2020

Posted on:

16 Jun 2020

0

Resolved: tf.placeholder (TensorFlow)

I typed this:

inputs = tf.placeholder(tf.float32,[None,input_size])
targets = tf.placeholder(tf.float32,[None,output_size])

And it gave me:

module 'tensorflow' has no attribute 'placeholder'
2 answers ( 0 marked as helpful)
Instructor
Posted on:

17 Jun 2020

0
Hi Rajasingh, Thanks for reaching out! Which version of TF are you running? You can check that by writing:
print(tf.__version__)
Best, The 365 Team
Posted on:

17 Jun 2020

0

My version is 2.2.0, so is something wrong with the version. Please help.

Submit an answer