The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

TensorFlow attribute error with tf.placeholder

TensorFlow attribute error with tf.placeholder

Super Learner
0
Votes
1
Answer

I am currently with attending the Deep Learning with TensorFlow. However I can’t run any of the code based on the classes.
 
every time i call the tf.placeholder I received the following error: ” AttributeError: Module ‘tensorflow’ has no attribute ‘placeholder’.”
 
Note I am running Python3 with Jupiter under anaconda.
the version of tensorflow is tall is 2.30.
 
Please advise
 
and i used import tensorflow as tf

1 Answer

365 Team
0
Votes

Hi Serge,
Thanks for reaching out!
Currently, we have two courses: Deep Learning with TensorFlow and Deep Learning with TensorFlow 2.
The theoretical parts are the same. However, the code is different for the two versions. After all the theory of NNs doesn’t change. Only the version of TensorFlow does.
You are encountering this issue because you have installed TF2 (judging by your version – 2.30).
If you want to follow the TF1 version, please follow this link: https://365datascience.teachable.com/courses/enrolled/284663
If you want to follow the more recent course (TensorFlow 2), please proceed at this link: https://365datascience.teachable.com/courses/enrolled/614390
Best,
The 365 Team

×
LAST CHANCE
Ready to Learn Data Science?
50% OFF